]> git.saurik.com Git - wxWidgets.git/commitdiff
wxAny CheckType() member functions should be const
authorJaakko Salli <jaakko.salli@dnainternet.net>
Wed, 9 Jun 2010 20:22:08 +0000 (20:22 +0000)
committerJaakko Salli <jaakko.salli@dnainternet.net>
Wed, 9 Jun 2010 20:22:08 +0000 (20:22 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64543 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/any.h

index 2a1bf7142a6ea675a0300f2ef0a3fd03043ec0be..0e3e4a9bea56feeb6f6b03320a01101f98a73370 100644 (file)
@@ -112,7 +112,7 @@ public:
     */
     // FIXME-VC6: remove this hack when VC6 is no longer supported
     template <typename T>
-    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 <typename T>
-    bool CheckType(T* = NULL)
+    bool CheckType(T* = NULL) const
     {
         return m_type->CheckType<T>();
     }
@@ -1054,7 +1054,7 @@ private:
 
 
 template<typename T>
-inline bool wxAnyValueType::CheckType(T* reserved)
+inline bool wxAnyValueType::CheckType(T* reserved) const
 {
     wxUnusedVar(reserved);
     return wxAnyValueTypeImpl<T>::IsSameClass(this);