From 65aeb571355c15d7ec213f2c64995d0fd1741af1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?W=C5=82odzimierz=20Skiba?= Date: Sun, 17 Oct 2004 19:45:42 +0000 Subject: [PATCH] wxHashMap compatible typecasting. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29950 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/cshelp.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/common/cshelp.cpp b/src/common/cshelp.cpp index 360a7f86be..a532528bb1 100644 --- a/src/common/cshelp.cpp +++ b/src/common/cshelp.cpp @@ -352,8 +352,9 @@ void wxSimpleHelpProvider::AddHelp(wxWindowBase *window, const wxString& text) void wxSimpleHelpProvider::AddHelp(wxWindowID id, const wxString& text) { - m_hashIds.erase((long)id); - m_hashIds[id] = text; + wxLongToStringHashMap::const_key_type key = (wxLongToStringHashMap::const_key_type)id; + m_hashIds.erase(key); + m_hashIds[key] = text; } // removes the association -- 2.50.0