X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fhelpers%2Fproperty-helper.cpp;h=3fa1b7a247b4fc5c716e8093bfa44d5a550b20b6;hb=5a936aac073676657d48db5c42e5d2ad3f5cac9f;hp=94be0237c035c5a53b5bd87a5b98be40a0a1791d;hpb=867aa572372bf901975516db0fa77630754a8c27;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 94be023..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 { - Property::Array* array = value.GetArray(); - if( array ) + const Property::Array* array = value.GetArray(); + 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';