wxHashMap compatible typecasting.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29950 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba
2004-10-17 19:45:42 +00:00
parent 42a2452301
commit 65aeb57135

View 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