diff options
Diffstat (limited to 'src/components/smart_objects/src/string_schema_item.cc')
-rw-r--r-- | src/components/smart_objects/src/string_schema_item.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/components/smart_objects/src/string_schema_item.cc b/src/components/smart_objects/src/string_schema_item.cc index 63d01f0c18..f82ce9378c 100644 --- a/src/components/smart_objects/src/string_schema_item.cc +++ b/src/components/smart_objects/src/string_schema_item.cc @@ -45,6 +45,11 @@ utils::SharedPtr<CStringSchemaItem> CStringSchemaItem::create( return new CStringSchemaItem(MinLength, MaxLength, DefaultValue); } +Errors::eType CStringSchemaItem::validate(const SmartObject& Object) { + std::string errorMessage; + return validate(Object, errorMessage); +} + Errors::eType CStringSchemaItem::validate(const SmartObject& Object, std::string& errorMessage) { if (SmartType_String != Object.getType()) { |