Changeset 166585 in webkit


Ignore:
Timestamp:
Apr 1, 2014 8:20:40 AM (10 years ago)
Author:
zandobersek@gmail.com
Message:

Move the attributes HashMap out of the parseAttributes function
https://bugs.webkit.org/show_bug.cgi?id=131019

Reviewed by Andreas Kling.

  • xml/parser/XMLDocumentParserLibxml2.cpp:

(WebCore::parseAttributes): Avoid copying the HashMap object that's being returned by
converting it to an xvalue through using std::move() in the return statement.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r166582 r166585  
     12014-04-01  Zan Dobersek  <zdobersek@igalia.com>
     2
     3        Move the attributes HashMap out of the parseAttributes function
     4        https://bugs.webkit.org/show_bug.cgi?id=131019
     5
     6        Reviewed by Andreas Kling.
     7
     8        * xml/parser/XMLDocumentParserLibxml2.cpp:
     9        (WebCore::parseAttributes): Avoid copying the HashMap object that's being returned by
     10        converting it to an xvalue through using std::move() in the return statement.
     11
    1122014-04-01  Zalan Bujtas  <zalan@apple.com>
    213
  • trunk/Source/WebCore/xml/parser/XMLDocumentParserLibxml2.cpp

    r166120 r166585  
    15451545
    15461546    attrsOK = state.gotAttributes;
    1547     return state.attributes;
    1548 }
    1549 
    1550 }
     1547    return std::move(state.attributes);
     1548}
     1549
     1550}
Note: See TracChangeset for help on using the changeset viewer.