Changeset 127670 in webkit


Ignore:
Timestamp:
Sep 5, 2012 6:11:35 PM (12 years ago)
Author:
staikos@webkit.org
Message:

[BlackBerry] Assignment operators missing self-check
https://bugs.webkit.org/show_bug.cgi?id=95774

Reviewed by Rob Buis.

Add a test for self-assignment.

  • Api/WebAnimation.cpp:

(BlackBerry::WebKit::WebAnimation::operator=):

  • Api/WebString.cpp:

(BlackBerry::WebKit::WebString::operator=):

Location:
trunk/Source/WebKit/blackberry
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/blackberry/Api/WebAnimation.cpp

    r118750 r127670  
    7171WebAnimation& WebAnimation::operator=(const WebAnimation& o)
    7272{
    73     *d = *o.d;
     73    if (&o != this)
     74        *d = *o.d;
    7475    return *this;
    7576}
  • trunk/Source/WebKit/blackberry/Api/WebString.cpp

    r108011 r127670  
    6868WebString& WebString::operator=(const WebString& str)
    6969{
     70    if (&str == this)
     71        return *this;
    7072    if (str.m_impl)
    7173        str.m_impl->ref();
  • trunk/Source/WebKit/blackberry/ChangeLog

    r127650 r127670  
     12012-09-05  George Staikos  <staikos@webkit.org>
     2
     3        [BlackBerry] Assignment operators missing self-check
     4        https://bugs.webkit.org/show_bug.cgi?id=95774
     5
     6        Reviewed by Rob Buis.
     7
     8        Add a test for self-assignment.
     9
     10        * Api/WebAnimation.cpp:
     11        (BlackBerry::WebKit::WebAnimation::operator=):
     12        * Api/WebString.cpp:
     13        (BlackBerry::WebKit::WebString::operator=):
     14
    1152012-09-05  Leo Yang  <leoyang@rim.com>
    216
Note: See TracChangeset for help on using the changeset viewer.