From 49ddcdf95fcce9d3dd2714fd94e59f6cf4260c65 Mon Sep 17 00:00:00 2001 From: Jaakko Salli Date: Wed, 9 Jun 2010 20:22:08 +0000 Subject: [PATCH] wxAny CheckType() member functions should be const git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64543 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/any.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/wx/any.h b/include/wx/any.h index 2a1bf7142a..0e3e4a9bea 100644 --- a/include/wx/any.h +++ b/include/wx/any.h @@ -112,7 +112,7 @@ public: */ // FIXME-VC6: remove this hack when VC6 is no longer supported template - bool CheckType(T* reserved = NULL); + bool CheckType(T* reserved = NULL) const; private: }; @@ -772,7 +772,7 @@ public: */ // FIXME-VC6: remove this hack when VC6 is no longer supported template - bool CheckType(T* = NULL) + bool CheckType(T* = NULL) const { return m_type->CheckType(); } @@ -1054,7 +1054,7 @@ private: template -inline bool wxAnyValueType::CheckType(T* reserved) +inline bool wxAnyValueType::CheckType(T* reserved) const { wxUnusedVar(reserved); return wxAnyValueTypeImpl::IsSameClass(this); -- 2.45.2