X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d863ed833366bdc5a45e69e6a0a4a98cc3a73aba..d9b21c9f47f59f36d73220270002b55a7babfdfc:/include/wx/cmdproc.h?ds=sidebyside diff --git a/include/wx/cmdproc.h b/include/wx/cmdproc.h index 4092fdffda..0e5547a6b7 100644 --- a/include/wx/cmdproc.h +++ b/include/wx/cmdproc.h @@ -91,7 +91,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(); @@ -123,6 +123,7 @@ protected: private: DECLARE_DYNAMIC_CLASS(wxCommandProcessor) + DECLARE_NO_COPY_CLASS(wxCommandProcessor) }; #endif // _WX_CMDPROC_H_