]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/stockitem.h
check the item id validity in SetItem()
[wxWidgets.git] / include / wx / stockitem.h
index 6c1740c64a21ab2160d8138625bc548f59d61029..7d2b21429783470c95384d9a1647d623e906f42a 100644 (file)
@@ -31,7 +31,7 @@ WXDLLEXPORT bool wxIsStockLabel(wxWindowID id, const wxString& label);
 // for wxSTOCK_OK):
 WXDLLEXPORT wxString wxGetStockLabel(wxWindowID id,
                                      bool withCodes = true,
-                                     wxString accelerator = wxEmptyString);
+                                     const wxString& accelerator = wxEmptyString);
 
 #ifdef __WXGTK20__
 // Translates stock ID to GTK+'s stock item string indentifier: