Use const_cast<> to get 'wxAnyValueType*' from 'const wxAnyValueType*'
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64031 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -85,11 +85,8 @@ public:
|
|||||||
wxVariantDataFactory FindVariantDataFactory(const wxAnyValueType* type_)
|
wxVariantDataFactory FindVariantDataFactory(const wxAnyValueType* type_)
|
||||||
{
|
{
|
||||||
// Ideally we'd have the hash map of type 'const wxAnyValueType*',
|
// Ideally we'd have the hash map of type 'const wxAnyValueType*',
|
||||||
// but WX_DECLARE_HASH_MAP() has some trouble with it. Also note
|
// but WX_DECLARE_HASH_MAP() has some trouble with it.
|
||||||
// that we must use C-style cast here instead of e.g.
|
wxAnyValueType* type = const_cast<wxAnyValueType*>(type_);
|
||||||
// static_cast<>, which can cause compiler to complain when
|
|
||||||
// casting away constness.
|
|
||||||
wxAnyValueType* type = (wxAnyValueType*)(type_);
|
|
||||||
|
|
||||||
wxAnyTypeToVariantDataFactoryMap& anyToVariant = m_anyToVariant;
|
wxAnyTypeToVariantDataFactoryMap& anyToVariant = m_anyToVariant;
|
||||||
wxAnyTypeToVariantDataFactoryMap::const_iterator it;
|
wxAnyTypeToVariantDataFactoryMap::const_iterator it;
|
||||||
|
Reference in New Issue
Block a user