X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fhelpers%2Fproperty-helper.cpp;h=3fa1b7a247b4fc5c716e8093bfa44d5a550b20b6;hb=f2039d47f9bed8104575da80a2ecf0bb6e37ff8d;hp=db8597b56e5e436d7facad9d47be7841b29f213b;hpb=f3e45e41c5f16ccc2538b283897ed6efb07e4ea9;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/helpers/property-helper.cpp b/dali-toolkit/internal/helpers/property-helper.cpp index db8597b..3fa1b7a 100644 --- a/dali-toolkit/internal/helpers/property-helper.cpp +++ b/dali-toolkit/internal/helpers/property-helper.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 Samsung Electronics Co., Ltd. + * Copyright (c) 2021 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -23,30 +23,27 @@ namespace Dali { - namespace Toolkit { - namespace Internal { - -bool GetStringFromProperty( const Property::Value& value, std::string& output ) +bool GetStringFromProperty(const Property::Value& value, std::string& output) { bool extracted = false; - if( value.Get( output ) ) + if(value.Get(output)) { extracted = true; } else { const Property::Array* array = value.GetArray(); - if( array ) + if(array) { const unsigned int arraySize = array->Size(); - for( unsigned int i = 0; i < arraySize; ++i ) + for(unsigned int i = 0; i < arraySize; ++i) { std::string element; - if( array->GetElementAt( i ).Get( element ) ) + if(array->GetElementAt(i).Get(element)) { extracted = true; output += element + '\n';