Correctly check validity for type during setType.

This commit is contained in:
JoelKatz
2012-09-29 01:30:17 -07:00
parent 3e305871c3
commit 98655aed4d
4 changed files with 46 additions and 37 deletions

View File

@@ -28,7 +28,6 @@ protected:
std::vector<SOElement::ptr> mType;
STObject* duplicate() const { return new STObject(*this); }
bool compare(const SerializedType& f1, const SerializedType& f2);
public:
STObject() { ; }
@@ -45,7 +44,7 @@ public:
static std::auto_ptr<SerializedType> deserialize(SerializerIterator& sit, SField::ref name);
void setType(SOElement::ptrList);
bool setType(SOElement::ptrList);
bool isValidForType();
bool isFieldAllowed(SField::ref);