X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Fmarkup-processor-color.cpp;h=b66e37af1044eab58ea6ed63c15db37c8e152c8a;hb=b7fa1ad780f9948dd2738dfaa630f97e5f5a7a81;hp=2fd826d36007e0711b6044a01c1c81c71293b08c;hpb=213195730a51b211653cb6ad460b23a6e363b779;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/text/markup-processor-color.cpp b/dali-toolkit/internal/text/markup-processor-color.cpp index 2fd826d..b66e37a 100644 --- a/dali-toolkit/internal/text/markup-processor-color.cpp +++ b/dali-toolkit/internal/text/markup-processor-color.cpp @@ -27,29 +27,26 @@ namespace Dali { - namespace Toolkit { - namespace Text { - namespace { const std::string XHTML_VALUE_ATTRIBUTE("value"); } -void ProcessColorTag( const Tag& tag, ColorRun& colorRun ) +void ProcessColorTag(const Tag& tag, ColorRun& colorRun) { - for( Vector::ConstIterator it = tag.attributes.Begin(), - endIt = tag.attributes.End(); - it != endIt; - ++it ) + for(Vector::ConstIterator it = tag.attributes.Begin(), + endIt = tag.attributes.End(); + it != endIt; + ++it) { - const Attribute& attribute( *it ); - if( TokenComparison( XHTML_VALUE_ATTRIBUTE, attribute.nameBuffer, attribute.nameLength ) ) + const Attribute& attribute(*it); + if(TokenComparison(XHTML_VALUE_ATTRIBUTE, attribute.nameBuffer, attribute.nameLength)) { - ColorStringToVector4( attribute.valueBuffer, attribute.valueLength, colorRun.color ); + ColorStringToVector4(attribute.valueBuffer, attribute.valueLength, colorRun.color); } } }