summaryrefslogtreecommitdiffstats
path: root/webkit/plugins/ppapi/ppb_input_event_impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/plugins/ppapi/ppb_input_event_impl.cc')
-rw-r--r--webkit/plugins/ppapi/ppb_input_event_impl.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/webkit/plugins/ppapi/ppb_input_event_impl.cc b/webkit/plugins/ppapi/ppb_input_event_impl.cc
index ffb6cba..f2383b0 100644
--- a/webkit/plugins/ppapi/ppb_input_event_impl.cc
+++ b/webkit/plugins/ppapi/ppb_input_event_impl.cc
@@ -25,9 +25,7 @@ PPB_InputEvent_Impl::PPB_InputEvent_Impl(PluginInstance* instance,
// static
PP_Resource PPB_InputEvent_Impl::Create(PluginInstance* instance,
const InputEventData& data) {
- scoped_refptr<PPB_InputEvent_Impl> event(
- new PPB_InputEvent_Impl(instance, data));
- return event->GetReference();
+ return (new PPB_InputEvent_Impl(instance, data))->GetReference();
}
PPB_InputEvent_API* PPB_InputEvent_Impl::AsPPB_InputEvent_API() {