summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJackLivio <jack@livio.io>2018-08-13 15:54:25 -0400
committerJackLivio <jack@livio.io>2018-08-13 15:54:25 -0400
commit4089a848ad9d1b5a6ea786859e2e21ce502fcafd (patch)
tree4dc451a8e7cfe7639659852f4d1c66f82364bddd
parentfba8c67970943299877210f670ab64ac875b89a8 (diff)
downloadsdl_core-4089a848ad9d1b5a6ea786859e2e21ce502fcafd.tar.gz
Revert to return shared_ptr
-rw-r--r--src/components/smart_objects/include/smart_objects/enum_schema_item.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/smart_objects/include/smart_objects/enum_schema_item.h b/src/components/smart_objects/include/smart_objects/enum_schema_item.h
index b9f8547922..0b699349ba 100644
--- a/src/components/smart_objects/include/smart_objects/enum_schema_item.h
+++ b/src/components/smart_objects/include/smart_objects/enum_schema_item.h
@@ -296,8 +296,8 @@ TEnumSchemaItem<EnumType>::createWithSignatures(
const std::set<EnumType>& AllowedElements,
const std::map<EnumType, std::vector<ElementSignature> >& ElementSignatures,
const TSchemaItemParameter<EnumType>& DefaultValue) {
- std::make_shared<TEnumSchemaItem<EnumType> >(
- AllowedElements, DefaultValue, ElementSignatures);
+ return std::shared_ptr<TEnumSchemaItem<EnumType> >(
+ new TEnumSchemaItem<EnumType>(AllowedElements, DefaultValue, ElementSignatures));
}
template <typename EnumType>