diff options
Diffstat (limited to 'src/components/smart_objects/src/smart_object.cc')
-rw-r--r-- | src/components/smart_objects/src/smart_object.cc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/components/smart_objects/src/smart_object.cc b/src/components/smart_objects/src/smart_object.cc index 1322757ab1..ef5dc787be 100644 --- a/src/components/smart_objects/src/smart_object.cc +++ b/src/components/smart_objects/src/smart_object.cc @@ -701,6 +701,9 @@ void SmartObject::duplicate(const SmartObject& OtherObject) { case SmartType_Integer: newData.int_value = OtherObject.m_data.int_value; break; + case SmartType_UInteger: + newData.int_value = OtherObject.m_data.int_value; + break; case SmartType_Double: newData.double_value = OtherObject.m_data.double_value; break; @@ -875,8 +878,10 @@ bool SmartObject::isValid() const { errors::eType SmartObject::validate( rpc::ValidationReport* report__, - const utils::SemanticVersion& MessageVersion) { - return m_schema.validate(*this, report__, MessageVersion); + const utils::SemanticVersion& MessageVersion, + const bool allow_unknown_enums) { + return m_schema.validate( + *this, report__, MessageVersion, allow_unknown_enums); } void SmartObject::setSchema(const CSmartSchema& schema) { |