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; |
} |
} |