diff --git a/src/SerializedTypes.cpp b/src/SerializedTypes.cpp index 2a6b0f978e..da96fa5373 100644 --- a/src/SerializedTypes.cpp +++ b/src/SerializedTypes.cpp @@ -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; diff --git a/src/SerializedTypes.h b/src/SerializedTypes.h index 1ba0793ad3..7b7aa562b9 100644 --- a/src/SerializedTypes.h +++ b/src/SerializedTypes.h @@ -668,6 +668,7 @@ public: void addPath(const STPath& e) { value.push_back(e); } virtual bool isEquivalent(const SerializedType& t) const; + STPathSet& operator=(const STPathSet&); std::vector::iterator begin() { return value.begin(); } std::vector::iterator end() { return value.end(); }