]> git.saurik.com Git - wxWidgets.git/commitdiff
wxHashMap compatible typecasting.
authorWłodzimierz Skiba <abx@abx.art.pl>
Sun, 17 Oct 2004 19:45:42 +0000 (19:45 +0000)
committerWłodzimierz Skiba <abx@abx.art.pl>
Sun, 17 Oct 2004 19:45:42 +0000 (19:45 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29950 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/cshelp.cpp

index 360a7f86be4c6f47bd76ddbc3eaec107130f037b..a532528bb113328752cd46e0930ad414d1a78ecc 100644 (file)
@@ -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