From b80388aab65992f17788cb625f32dd82a3d3c28f Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 25 Sep 2005 22:50:26 +0000 Subject: [PATCH] don't use deprecated cast operator to wxList& git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35703 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/cmdproc.h | 3 ++- include/wx/docview.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/include/wx/cmdproc.h b/include/wx/cmdproc.h index a74a3df5bf..de7d68429c 100644 --- a/include/wx/cmdproc.h +++ b/include/wx/cmdproc.h @@ -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); diff --git a/include/wx/docview.h b/include/wx/docview.h index 2ad8477d49..13e875ceac 100644 --- a/include/wx/docview.h +++ b/include/wx/docview.h @@ -126,7 +126,8 @@ public: virtual bool AddView(wxView *view); virtual bool RemoveView(wxView *view); - wxList& GetViews() const { return (wxList&) m_documentViews; } + wxList& GetViews() { return m_documentViews; } + const wxList& GetViews() const { return m_documentViews; } wxView *GetFirstView() const; virtual void UpdateAllViews(wxView *sender = (wxView *) NULL, wxObject *hint = (wxObject *) NULL); -- 2.47.2