X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8907154c1a8a6882c6797d1f16393ddfb23e7f3a..07b1232d2c3de105855c17a46e4285547a1c736f:/include/wx/cmdproc.h diff --git a/include/wx/cmdproc.h b/include/wx/cmdproc.h index a74a3df5bf..ef5929870f 100644 --- a/include/wx/cmdproc.h +++ b/include/wx/cmdproc.h @@ -16,7 +16,7 @@ #include "wx/object.h" #include "wx/list.h" -class WXDLLEXPORT wxMenu; +class WXDLLIMPEXP_FWD_CORE wxMenu; // ---------------------------------------------------------------------------- // wxCommand: a single command capable of performing itself @@ -26,7 +26,7 @@ class WXDLLEXPORT wxCommand : public wxObject { public: wxCommand(bool canUndoIt = false, const wxString& name = wxEmptyString); - ~wxCommand(){} + virtual ~wxCommand(){} // Override this to perform a command virtual bool Do() = 0; @@ -87,7 +87,8 @@ public: #endif // wxUSE_MENUS // command list access - wxList& GetCommands() const { return (wxList&) m_commands; } + wxList& GetCommands() { return m_commands; } + const wxList& GetCommands() const { return m_commands; } wxCommand *GetCurrentCommand() const { return (wxCommand *)(m_currentCommand ? m_currentCommand->GetData() : NULL);