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

Unified Diff: remoting/host/clipboard_mac.mm

Issue 2838433003: Replace unique_ptr.reset(other_unique_ptr.release()) with std::move() in chrome (Closed)
Patch Set: Replace unique_ptr.reset(other_unique_ptr.release()) with std::move() in chrome Created 3 years, 7 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 | remoting/protocol/audio_decode_scheduler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/clipboard_mac.mm
diff --git a/remoting/host/clipboard_mac.mm b/remoting/host/clipboard_mac.mm
index d361a648513c82511ef12e300484db1e3c5918e8..572c4eeb8307a00211a97978a8ec0b23c3b5d77c 100644
--- a/remoting/host/clipboard_mac.mm
+++ b/remoting/host/clipboard_mac.mm
@@ -8,6 +8,7 @@
#include <stdint.h>
#include <memory>
+#include <utility>
#include "base/logging.h"
#include "base/macros.h"
@@ -53,7 +54,7 @@ void Start(
void ClipboardMac::Start(
std::unique_ptr<protocol::ClipboardStub> client_clipboard) {
- client_clipboard_.reset(client_clipboard.release());
+ client_clipboard_ = std::move(client_clipboard);
// Synchronize local change-count with the pasteboard's. The change-count is
// used to detect clipboard changes.
« no previous file with comments | « no previous file | remoting/protocol/audio_decode_scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698