mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Correctly check validity for type during setType.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user