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:
@@ -112,7 +112,7 @@ public:
|
|||||||
*/
|
*/
|
||||||
// FIXME-VC6: remove this hack when VC6 is no longer supported
|
// FIXME-VC6: remove this hack when VC6 is no longer supported
|
||||||
template <typename T>
|
template <typename T>
|
||||||
bool CheckType(T* reserved = NULL);
|
bool CheckType(T* reserved = NULL) const;
|
||||||
private:
|
private:
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -772,7 +772,7 @@ public:
|
|||||||
*/
|
*/
|
||||||
// FIXME-VC6: remove this hack when VC6 is no longer supported
|
// FIXME-VC6: remove this hack when VC6 is no longer supported
|
||||||
template <typename T>
|
template <typename T>
|
||||||
bool CheckType(T* = NULL)
|
bool CheckType(T* = NULL) const
|
||||||
{
|
{
|
||||||
return m_type->CheckType<T>();
|
return m_type->CheckType<T>();
|
||||||
}
|
}
|
||||||
@@ -1054,7 +1054,7 @@ private:
|
|||||||
|
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
inline bool wxAnyValueType::CheckType(T* reserved)
|
inline bool wxAnyValueType::CheckType(T* reserved) const
|
||||||
{
|
{
|
||||||
wxUnusedVar(reserved);
|
wxUnusedVar(reserved);
|
||||||
return wxAnyValueTypeImpl<T>::IsSameClass(this);
|
return wxAnyValueTypeImpl<T>::IsSameClass(this);
|
||||||
|
Reference in New Issue
Block a user