Add move assignment operator to logging::Tag (Coverity 1357732)

This commit is contained in:
Tim Wojtulewicz 2019-09-13 14:13:41 -07:00
parent 1cf8a530cf
commit 48e7169bd8
2 changed files with 11 additions and 0 deletions

View file

@ -16,6 +16,12 @@ logging::Tag& logging::Tag::operator=(const logging::Tag& other)
return *this; return *this;
} }
logging::Tag& logging::Tag::operator=(const logging::Tag&& other)
{
::Tag::operator=(other);
return *this;
}
EnumVal* logging::Tag::AsEnumVal() const EnumVal* logging::Tag::AsEnumVal() const
{ {
return ::Tag::AsEnumVal(log_mgr->GetTagEnumType()); return ::Tag::AsEnumVal(log_mgr->GetTagEnumType());

View file

@ -50,6 +50,11 @@ public:
*/ */
Tag& operator=(const Tag& other); Tag& operator=(const Tag& other);
/**
* Move assignment operator.
*/
Tag& operator=(const Tag&& other);
/** /**
* Compares two tags for equality. * Compares two tags for equality.
*/ */