diff options
author | brettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-02 17:59:13 +0000 |
---|---|---|
committer | brettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-02 17:59:13 +0000 |
commit | 33ae34cd0174a199b85c6dc22145c72e007a1ee8 (patch) | |
tree | 28ad112df8cee7b3a25bfaff370ee09b6cb32a00 /ppapi/cpp/dev/widget_dev.cc | |
parent | 37f4a67b9b5f017b24ccec263c384d7ff1e1a387 (diff) | |
download | chromium_src-33ae34cd0174a199b85c6dc22145c72e007a1ee8.zip chromium_src-33ae34cd0174a199b85c6dc22145c72e007a1ee8.tar.gz chromium_src-33ae34cd0174a199b85c6dc22145c72e007a1ee8.tar.bz2 |
Remove all the swap() stuff in the PPAPI C++ wrappers.
Basically all of them are trivial and you can use the std::swap just as efficiently. Since this is unnecessary, we can reduce the complexity a bit.
TEST=none
BUG=54441
Review URL: http://codereview.chromium.org/5539001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68028 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/cpp/dev/widget_dev.cc')
-rw-r--r-- | ppapi/cpp/dev/widget_dev.cc | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/ppapi/cpp/dev/widget_dev.cc b/ppapi/cpp/dev/widget_dev.cc index 00756e5..46f36b5 100644 --- a/ppapi/cpp/dev/widget_dev.cc +++ b/ppapi/cpp/dev/widget_dev.cc @@ -27,15 +27,10 @@ Widget_Dev::Widget_Dev(const Widget_Dev& other) : Resource(other) { } Widget_Dev& Widget_Dev::operator=(const Widget_Dev& other) { - Widget_Dev copy(other); - swap(copy); + Resource::operator=(other); return *this; } -void Widget_Dev::swap(Widget_Dev& other) { - Resource::swap(other); -} - bool Widget_Dev::Paint(const Rect& rect, ImageData* image) { if (!widget_f) return false; |