Fix the bug causing 'Paths' not to have a name. The implicit 'operator='

function obliterated the name.
This commit is contained in:
JoelKatz
2012-08-19 22:41:30 -07:00
parent d05f74b838
commit 6f5eb015bf
2 changed files with 9 additions and 0 deletions

View File

@@ -463,6 +463,14 @@ std::string STPathSet::getText() const
}
#endif
STPathSet& STPathSet::operator=(const STPathSet& p)
{
if (name == NULL)
name = p.name;
value = p.value;
return *this;
}
void STPathSet::add(Serializer& s) const
{
bool bFirst = true;