Changeset 152618 in webkit


Ignore:
Timestamp:
Jul 14, 2013 5:45:12 PM (11 years ago)
Author:
rniwa@webkit.org
Message:

Modernize QualifiedName by wrapping gNameCache in a function and using more early exits
https://bugs.webkit.org/show_bug.cgi?id=118299

Reviewed by Andreas Kling.

Address Ben's review comment.

  • dom/QualifiedName.cpp:

(WebCore::QualifiedName::toString):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r152616 r152618  
     12013-07-14  Ryosuke Niwa  <rniwa@webkit.org>
     2
     3        Modernize QualifiedName by wrapping gNameCache in a function and using more early exits
     4        https://bugs.webkit.org/show_bug.cgi?id=118299
     5
     6        Reviewed by Andreas Kling.
     7
     8        Address Ben's review comment.
     9
     10        * dom/QualifiedName.cpp:
     11        (WebCore::QualifiedName::toString):
     12
    1132013-07-14  Ryosuke Niwa  <rniwa@webkit.org>
    214
  • trunk/Source/WebCore/dom/QualifiedName.cpp

    r152337 r152618  
    118118        return localName();
    119119
    120     StringBuilder result;
    121     result.append(prefix());
    122     result.append(':');
    123     result.append(localName());
    124     return result.toString();
     120    return prefix() + ':' + localName();
    125121}
    126122
Note: See TracChangeset for help on using the changeset viewer.