Fix some Coverity warnings.

This commit is contained in:
Robin Sommer 2016-08-02 11:38:07 -07:00
parent a273143e7d
commit 3adad5e19a
7 changed files with 27 additions and 8 deletions

View file

@ -65,6 +65,20 @@ Tag& Tag::operator=(const Tag& other)
return *this;
}
Tag& Tag::operator=(const Tag&& other)
{
if ( this != &other )
{
type = other.type;
subtype = other.subtype;
Unref(val);
val = other.val;
other.val = nullptr;
}
return *this;
}
EnumVal* Tag::AsEnumVal(EnumType* etype) const
{
if ( ! val )