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

Unified Diff: google_apis/drive/test_util.h

Issue 1547233002: Convert Pass()→std::move() in //google_apis (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 | « google_apis/drive/request_util.cc ('k') | google_apis/drive/test_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: google_apis/drive/test_util.h
diff --git a/google_apis/drive/test_util.h b/google_apis/drive/test_util.h
index f959ad76c42f2de28cc516522b151b4ce8947786..f3fbf8d7f7c924c3684835b647b79990009743dd 100644
--- a/google_apis/drive/test_util.h
+++ b/google_apis/drive/test_util.h
@@ -155,7 +155,7 @@ template<bool IsMovable, typename T> struct MoveHelper {
static const T& Move(const T* in) { return *in; }
};
template<typename T> struct MoveHelper<true, T> {
- static T Move(T* in) { return in->Pass(); }
+ static T Move(T* in) { return std::move(*in); }
};
// Helper to handle Chrome's move semantics correctly.
« no previous file with comments | « google_apis/drive/request_util.cc ('k') | google_apis/drive/test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698