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

Unified Diff: mojo/converters/input_events/input_events_type_converters.cc

Issue 1408793006: Convert "return local_var.Pass();" to "return local_var;". (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 2 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
Index: mojo/converters/input_events/input_events_type_converters.cc
diff --git a/mojo/converters/input_events/input_events_type_converters.cc b/mojo/converters/input_events/input_events_type_converters.cc
index 6f2495f240255ef4b0462a8f0bb62260785951cf..7635930fb12fec2801146750dba652fbf7a4ebd8 100644
--- a/mojo/converters/input_events/input_events_type_converters.cc
+++ b/mojo/converters/input_events/input_events_type_converters.cc
@@ -225,7 +225,7 @@ EventPtr TypeConverter<EventPtr, ui::Event>::Convert(const ui::Event& input) {
}
event->key_data = key_data.Pass();
}
- return event.Pass();
+ return event;
}
// static
« no previous file with comments | « mojo/converters/geometry/geometry_type_converters.cc ('k') | mojo/converters/ozone_drm_gpu/ozone_drm_gpu_type_converters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698