[GTK] avoid unneeded object creation when calling Vector::append
[WebKit-https.git] / Source / WebCore / platform / gtk / ContextMenuGtk.cpp
index 8916525..8c002c4 100644 (file)
@@ -103,7 +103,7 @@ Vector<ContextMenuItem> contextMenuItemVector(const PlatformMenuDescription menu
         GtkWidget* widget = static_cast<GtkWidget*>(item->data);
         if (!GTK_IS_MENU_ITEM(widget))
             continue;
-        menuItemVector.append(ContextMenuItem(GTK_MENU_ITEM(widget)));
+        menuItemVector.append(GTK_MENU_ITEM(widget));
     }
 
     return menuItemVector;