Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1830)

Unified Diff: cc/base/region.cc

Issue 12912010: cc: Convert non-const reference arguments to pointers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix ui/compositor Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/base/region.h ('k') | cc/base/region_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/base/region.cc
diff --git a/cc/base/region.cc b/cc/base/region.cc
index 4b286ef357ea9ae95aaeb86863d60295c9517090..7d63345ca8880d829fb7aea9a1a5829bc276cac8 100644
--- a/cc/base/region.cc
+++ b/cc/base/region.cc
@@ -30,8 +30,8 @@ const Region& Region::operator=(const Region& region) {
return *this;
}
-void Region::Swap(Region& region) {
- region.skregion_.swap(skregion_);
+void Region::Swap(Region* region) {
+ region->skregion_.swap(skregion_);
}
void Region::Clear() {
« no previous file with comments | « cc/base/region.h ('k') | cc/base/region_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698