[Webkit-unassigned] [Bug 73683] KeyframeValueList::operator= is neither safe to use nor prohibited

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Dec 2 14:27:28 PST 2011


https://bugs.webkit.org/show_bug.cgi?id=73683


Darin Adler <darin at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |darin at apple.com




--- Comment #3 from Darin Adler <darin at apple.com>  2011-12-02 14:27:29 PST ---
The canonical one is:

    KeyframeValueList& operator=(const KeyframeValueList& other)
    {
        KeyframeValueList copy(other);
        swap(copy);
        return *this;
    }

Assuming we write a swap function that swaps each member.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list