Changeset 127702 in webkit


Ignore:
Timestamp:
Sep 6, 2012 12:21:03 AM (12 years ago)
Author:
abarth@webkit.org
Message:

Remove WTF::String::operator+=
https://bugs.webkit.org/show_bug.cgi?id=95797

Patch by Adam Barth <abarth@chromium.org> on 2012-09-06
Reviewed by Sam Weinig.

This patch encloses WTF::String::operator+= in an ifdef so that we can
gradually remove it from the various port-specific files. The ifdef
lets us whitelist use of operator+= in individual files during the
transition.

  • wtf/Platform.h
  • wtf/text/WTFString.h:
Location:
trunk/Source/WTF
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r127561 r127702  
     12012-09-06  Adam Barth  <abarth@chromium.org>
     2
     3        Remove WTF::String::operator+=
     4        https://bugs.webkit.org/show_bug.cgi?id=95797
     5
     6        Reviewed by Sam Weinig.
     7
     8        This patch encloses WTF::String::operator+= in an ifdef so that we can
     9        gradually remove it from the various port-specific files. The ifdef
     10        lets us whitelist use of operator+= in individual files during the
     11        transition.
     12
     13        * wtf/Platform.h
     14        * wtf/text/WTFString.h:
     15
    1162012-09-05  Gabor Rapcsanyi  <rgabor@webkit.org>
    217
  • trunk/Source/WTF/wtf/Platform.h

    r127561 r127702  
    11861186#endif
    11871187
     1188#if PLATFORM(QT) || PLATFORM(GTK) || PLATFORM(WIN)
     1189#define WTF_DEPRECATED_STRING_OPERATORS
     1190#endif
     1191
    11881192#if PLATFORM(QT)
    11891193#include <qglobal.h>
  • trunk/Source/WTF/wtf/text/WTFString.h

    r127212 r127702  
    467467#endif
    468468
     469#ifdef WTF_DEPRECATED_STRING_OPERATORS
    469470inline String& operator+=(String& a, const String& b) { a.append(b); return a; }
     471#endif
    470472
    471473inline bool operator==(const String& a, const String& b) { return equal(a.impl(), b.impl()); }
Note: See TracChangeset for help on using the changeset viewer.