X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/22f3361e1cf25c52a2da8fdfc5cb081809e18fb9..ac0c4cc396523e217cde2c605e670674b4990de2:/include/wx/cmdproc.h diff --git a/include/wx/cmdproc.h b/include/wx/cmdproc.h index f059bd5187..13523e077e 100644 --- a/include/wx/cmdproc.h +++ b/include/wx/cmdproc.h @@ -19,6 +19,8 @@ #include "wx/object.h" #include "wx/list.h" +class WXDLLEXPORT wxMenu; + // ---------------------------------------------------------------------------- // wxCommand: a single command capable of performing itself // ---------------------------------------------------------------------------- @@ -91,7 +93,7 @@ public: wxList& GetCommands() const { return (wxList&) m_commands; } wxCommand *GetCurrentCommand() const { - return (wxCommand *)(m_currentCommand ? m_currentCommand->Data() : NULL); + return (wxCommand *)(m_currentCommand ? m_currentCommand->GetData() : NULL); } int GetMaxCommands() const { return m_maxNoCommands; } virtual void ClearCommands();