X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b7e94bd7ebc205ffba5e2729b0d465778d4e48c6..95b4a59e67af301bb6ff061055ac5a9a09b96d6c:/interface/wx/cmdproc.h?ds=sidebyside diff --git a/interface/wx/cmdproc.h b/interface/wx/cmdproc.h index 9c0c1e909c..1698d9e7b7 100644 --- a/interface/wx/cmdproc.h +++ b/interface/wx/cmdproc.h @@ -35,7 +35,7 @@ public: Must be supplied for the command processor to display the command name in the application's edit menu. */ - wxCommand(bool canUndo = false, const wxString& name = NULL); + wxCommand(bool canUndo = false, const wxString& name = wxEmptyString); /** Destructor. @@ -56,7 +56,7 @@ public: processor that the action is not undoable and should not be added to the command history. */ - bool Do(); + virtual bool Do(); /** Returns the command name. @@ -68,7 +68,7 @@ public: How you implement this command is totally application dependent, but typical strategies include: - + - Perform an inverse operation on the last modified piece of data in the document. When redone, a copy of data stored in command is pasted back or some operation reapplied. This relies on the fact that you @@ -85,7 +85,7 @@ public: processor that the action is not redoable and no change should be made to the command history. */ - bool Undo(); + virtual bool Undo(); };