Index: base/containers/scoped_ptr_map.h |
diff --git a/base/containers/scoped_ptr_map.h b/base/containers/scoped_ptr_map.h |
index dfa26f4febeaf8d5a16570caaf93852419bc9bb2..822cbfd0ebd12a215d967c9aa582cacc21cd8344 100644 |
--- a/base/containers/scoped_ptr_map.h |
+++ b/base/containers/scoped_ptr_map.h |
@@ -116,7 +116,7 @@ class ScopedPtrMap { |
ScopedPtr ret(position->second); |
// Key-based lookup (cannot use const_iterator overload in C++03 library). |
data_.erase(position->first); |
- return ret.Pass(); |
+ return ret; |
} |
// Like |erase()|, but returns the element instead of deleting it. |
@@ -127,7 +127,7 @@ class ScopedPtrMap { |
ScopedPtr ret(it->second); |
data_.erase(it); |
- return ret.Pass(); |
+ return ret; |
} |
private: |