Changeset 73282 in webkit


Ignore:
Timestamp:
Dec 3, 2010 11:47:38 AM (13 years ago)
Author:
Patrick Gansterer
Message:

2010-12-03 Patrick Gansterer <Patrick Gansterer>

Reviewed by David Levin.

Use String::adopt in TextCodecWinCE::decode
https://bugs.webkit.org/show_bug.cgi?id=50319

  • platform/text/wince/TextCodecWinCE.cpp: (WebCore::TextCodecWinCE::decode):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r73281 r73282  
     12010-12-03  Patrick Gansterer  <paroga@webkit.org>
     2
     3        Reviewed by David Levin.
     4
     5        Use String::adopt in TextCodecWinCE::decode
     6        https://bugs.webkit.org/show_bug.cgi?id=50319
     7
     8        * platform/text/wince/TextCodecWinCE.cpp:
     9        (WebCore::TextCodecWinCE::decode):
     10
    1112010-12-03  Brady Eidson  <beidson@apple.com>
    212
  • trunk/WebCore/platform/text/wince/TextCodecWinCE.cpp

    r69915 r73282  
    334334        sawError = true;
    335335        if (stopOnError)
    336             return String(result.data(), result.size());
    337 
     336            return String::adopt(result);
    338337
    339338        if (left == 1)
     
    352351    } else
    353352        m_decodeBuffer.clear();
    354     return String(result.data(), result.size());
     353
     354    return String::adopt(result);
    355355}
    356356
Note: See TracChangeset for help on using the changeset viewer.