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

Unified Diff: cc/base/scoped_ptr_algorithm.h

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_unittest.cc ('k') | cc/debug/overdraw_metrics.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/base/scoped_ptr_algorithm.h
diff --git a/cc/base/scoped_ptr_algorithm.h b/cc/base/scoped_ptr_algorithm.h
index ad2f918f3bda31a6bbcc0721b227f8956ba0df07..79f4eee49e6d264e0a913280024d1c024b9cf9eb 100644
--- a/cc/base/scoped_ptr_algorithm.h
+++ b/cc/base/scoped_ptr_algorithm.h
@@ -11,14 +11,14 @@ namespace cc {
// assignment to their iterators.
template <class ForwardIterator, class Predicate, class ScopedContainer>
ForwardIterator remove_if(
- ScopedContainer& container,
+ ScopedContainer* container,
ForwardIterator first,
ForwardIterator last,
Predicate predicate) {
ForwardIterator result = first;
for (; first != last; ++first) {
if (!predicate(*first)) {
- container.swap(first, result);
+ container->swap(first, result);
++result;
}
}
« no previous file with comments | « cc/base/region_unittest.cc ('k') | cc/debug/overdraw_metrics.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698