wxAny CheckType() member functions should be const

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64543 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Jaakko Salli 2010-06-09 20:22:08 +00:00
parent a5664fd6ef
commit 49ddcdf95f

View 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);