[GTK] avoid unneeded object creation when calling Vector::append
[WebKit-https.git] / Source / WebCore / platform / gtk / KeyBindingTranslator.h
index 0991a44..bc4a3ff 100644 (file)
@@ -33,7 +33,7 @@ public:
 
     enum EventType { KeyDown, KeyPress };
     void getEditorCommandsForKeyEvent(GdkEventKey*, EventType, Vector<WTF::String>&);
-    void addPendingEditorCommand(const char* command) { m_pendingEditorCommands.append(WTF::String(command)); }
+    void addPendingEditorCommand(const char* command) { m_pendingEditorCommands.append(command); }
 
 private:
     GRefPtr<GtkWidget> m_nativeWidget;