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

Unified Diff: win8/metro_driver/ime/text_service.cc

Issue 1752233002: Convert Pass()→std::move() on Windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 10 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 | « ui/views/win/hwnd_message_handler.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: win8/metro_driver/ime/text_service.cc
diff --git a/win8/metro_driver/ime/text_service.cc b/win8/metro_driver/ime/text_service.cc
index 1ad071b3e30a0c1351a8d99cdeef61b9da27aa1f..1ee845e024ac57e24f2585d358ce5010729af913 100644
--- a/win8/metro_driver/ime/text_service.cc
+++ b/win8/metro_driver/ime/text_service.cc
@@ -8,6 +8,8 @@
#include <stddef.h>
#include <stdint.h>
+#include <utility>
+
#include "base/logging.h"
#include "base/macros.h"
#include "base/win/scoped_variant.h"
@@ -287,10 +289,8 @@ class DocumentBinding {
LOG(ERROR) << "ITfDocumentMgr::Push failed. hr = " << hr;
return scoped_ptr<DocumentBinding>();
}
- return scoped_ptr<DocumentBinding>(
- new DocumentBinding(text_store,
- document_manager,
- text_edit_sink.Pass()));
+ return scoped_ptr<DocumentBinding>(new DocumentBinding(
+ text_store, document_manager, std::move(text_edit_sink)));
}
ITfDocumentMgr* document_manager() const { return document_manager_.get(); }
@@ -305,7 +305,7 @@ class DocumentBinding {
scoped_ptr<EventSink> text_edit_sink)
: text_store_(text_store),
document_manager_(document_manager),
- text_edit_sink_(text_edit_sink.Pass()) {}
+ text_edit_sink_(std::move(text_edit_sink)) {}
scoped_refptr<TextStore> text_store_;
base::win::ScopedComPtr<ITfDocumentMgr> document_manager_;
« no previous file with comments | « ui/views/win/hwnd_message_handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698