X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Fmarkup-processor-anchor.cpp;h=771ff4e7d9e4bbfc25b1f4b6701cfc8e24c1cbfe;hp=4c4bb2936af0a8c2ceee2d851b4567d5474632d5;hb=refs%2Fchanges%2F69%2F272869%2F5;hpb=11ac31ab089b6b0d6cb8b06381724ac8c0ce126e diff --git a/dali-toolkit/internal/text/markup-processor-anchor.cpp b/dali-toolkit/internal/text/markup-processor-anchor.cpp index 4c4bb29..771ff4e 100644 --- a/dali-toolkit/internal/text/markup-processor-anchor.cpp +++ b/dali-toolkit/internal/text/markup-processor-anchor.cpp @@ -25,6 +25,7 @@ // INTERNAL INCLUDES #include #include +#include namespace Dali { @@ -32,18 +33,13 @@ namespace Toolkit { namespace Text { -namespace -{ -const std::string XHTML_HREF_ATTRIBUTE("href"); -} // namespace - void ProcessAnchor(const Tag& tag, Anchor& anchor) { anchor.href = nullptr; for(auto&& attribute : tag.attributes) { - if(TokenComparison(XHTML_HREF_ATTRIBUTE, attribute.nameBuffer, attribute.nameLength)) + if(TokenComparison(MARKUP::ANCHOR_ATTRIBUTES::HREF, attribute.nameBuffer, attribute.nameLength)) { Length hrefLength = attribute.valueLength + 1; anchor.href = new char[hrefLength];