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

Unified Diff: base/callback_list_unittest.nc

Issue 1556683003: Fix no-compile base_unittests for base::Pass() -> std::move conversion (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove unneeded std::move Created 4 years, 11 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 | « no previous file | base/memory/scoped_ptr_unittest.nc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/callback_list_unittest.nc
diff --git a/base/callback_list_unittest.nc b/base/callback_list_unittest.nc
index 45ac994f23906f768ceb6d3b449aa6333b0c8ff6..ef193f4ee368728c257fdf9bd8f6c1427de728a9 100644
--- a/base/callback_list_unittest.nc
+++ b/base/callback_list_unittest.nc
@@ -7,6 +7,8 @@
#include "base/callback_list.h"
+#include <utility>
+
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/macros.h"
@@ -24,7 +26,7 @@ class FooListener {
public:
FooListener() {}
- void GotAScopedFoo(scoped_ptr<Foo> f) { foo_ = f.Pass(); }
+ void GotAScopedFoo(scoped_ptr<Foo> f) { foo_ = std::move(f); }
scoped_ptr<Foo> foo_;
« no previous file with comments | « no previous file | base/memory/scoped_ptr_unittest.nc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698