mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 16:18:19 +00:00
Add move assignment operator to logging::Tag (Coverity 1357732)
This commit is contained in:
parent
1cf8a530cf
commit
48e7169bd8
2 changed files with 11 additions and 0 deletions
|
@ -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());
|
||||||
|
|
|
@ -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.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue