]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/stockitem.cpp
don't crash if conversion of a command line argument to Unicode fails
[wxWidgets.git] / src / common / stockitem.cpp
index 197531b3d191ab63b5ec55417c49045246bb8446..c1b7d71ad8f51c5fab8c0e7dcc9854fcf9a2c326 100644 (file)
@@ -89,7 +89,7 @@ bool wxIsStockID(wxWindowID id)
     }
 }
 
-wxString wxGetStockLabel(wxWindowID id, bool withCodes, wxString accelerator)
+wxString wxGetStockLabel(wxWindowID id, bool withCodes, const wxString& accelerator)
 {
     wxString stockLabel;