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

Unified Diff: ash/sticky_keys/sticky_keys_controller.cc

Issue 2743193002: Replace unique_ptr.reset(other_unique_ptr.release()) with std::move() in ash/ (Closed)
Patch Set: Replace unique_ptr.reset(other_unique_ptr.release()) with std::move() in ash/ Created 3 years, 9 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 | ash/test/shelf_button_pressed_metric_tracker_test_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/sticky_keys/sticky_keys_controller.cc
diff --git a/ash/sticky_keys/sticky_keys_controller.cc b/ash/sticky_keys/sticky_keys_controller.cc
index d3257a8adbe291f4094708eaea93a86d27b6e030..29706f8f89b2a2f6c8f8e44ade18f5c2daba1185 100644
--- a/ash/sticky_keys/sticky_keys_controller.cc
+++ b/ash/sticky_keys/sticky_keys_controller.cc
@@ -295,7 +295,7 @@ int StickyKeysHandler::GetModifierUpEvent(
DCHECK(new_event);
if (*new_event)
return 1;
- new_event->reset(modifier_up_event_.release());
+ *new_event = std::move(modifier_up_event_);
return 0;
}
« no previous file with comments | « no previous file | ash/test/shelf_button_pressed_metric_tracker_test_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698