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

Unified Diff: ui/events/blink/compositor_thread_event_queue.cc

Issue 2546973003: Replace unique_ptr.reset/release with std::move under src/ui (Closed)
Patch Set: Whitespace formatting Created 4 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
Index: ui/events/blink/compositor_thread_event_queue.cc
diff --git a/ui/events/blink/compositor_thread_event_queue.cc b/ui/events/blink/compositor_thread_event_queue.cc
index 58290fd98b2e01e27b0da3a6c4806be98293a0a5..9eec24e0c52214c1795ea80137de688c015e1e97 100644
--- a/ui/events/blink/compositor_thread_event_queue.cc
+++ b/ui/events/blink/compositor_thread_event_queue.cc
@@ -25,7 +25,7 @@ void CompositorThreadEventQueue::Queue(std::unique_ptr<EventWithCallback> event,
std::unique_ptr<EventWithCallback> CompositorThreadEventQueue::Pop() {
std::unique_ptr<EventWithCallback> result;
if (!queue_.empty()) {
- result.reset(queue_.front().release());
+ result = std::move(queue_.front());
queue_.pop_front();
}
return result;

Powered by Google App Engine
This is Rietveld 408576698