]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/cshelp.cpp
refactoring in preparation for further changes: moved data in a private struct, let...
[wxWidgets.git] / src / common / cshelp.cpp
index a532528bb113328752cd46e0930ad414d1a78ecc..b8d7e4b7b2a17d4b85d8bad9a02ab2129a0085b4 100644 (file)
@@ -254,6 +254,8 @@ bool wxContextHelp::DispatchEvent(wxWindow* win, const wxPoint& pt)
  * to put the application into context help mode.
  */
 
+#ifndef __WXPM__
+
 static const char * csquery_xpm[] = {
 "12 11 2 1",
 "  c None",
@@ -270,6 +272,8 @@ static const char * csquery_xpm[] = {
 "     ..     ",
 "            "};
 
+#endif
+
 IMPLEMENT_CLASS(wxContextHelpButton, wxBitmapButton)
 
 BEGIN_EVENT_TABLE(wxContextHelpButton, wxBitmapButton)
@@ -352,7 +356,7 @@ void wxSimpleHelpProvider::AddHelp(wxWindowBase *window, const wxString& text)
 
 void wxSimpleHelpProvider::AddHelp(wxWindowID id, const wxString& text)
 {
-    wxLongToStringHashMap::const_key_type key = (wxLongToStringHashMap::const_key_type)id;
+    wxLongToStringHashMap::key_type key = (wxLongToStringHashMap::key_type)id;
     m_hashIds.erase(key);
     m_hashIds[key] = text;
 }
@@ -384,6 +388,8 @@ bool wxSimpleHelpProvider::ShowHelp(wxWindowBase *window)
 
         return true;
     }
+#else
+    wxUnusedVar(window);
 #endif // wxUSE_TIPWINDOW
 
     return false;