X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c9d59ee7e0cbe4acae6153adafb5ddce9a4e65dd..67a623de6e325179a9124d5dd0a3cd1849d5eba7:/src/common/cshelp.cpp diff --git a/src/common/cshelp.cpp b/src/common/cshelp.cpp index 360a7f86be..31af18593e 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::key_type key = (wxLongToStringHashMap::key_type)id; + m_hashIds.erase(key); + m_hashIds[key] = text; } // removes the association @@ -383,6 +384,8 @@ bool wxSimpleHelpProvider::ShowHelp(wxWindowBase *window) return true; } +#else + wxUnusedVar(window); #endif // wxUSE_TIPWINDOW return false;