Incomplete wxUSE_* warning fix.
authorWłodzimierz Skiba <abx@abx.art.pl>
Thu, 24 Mar 2005 17:49:56 +0000 (17:49 +0000)
committerWłodzimierz Skiba <abx@abx.art.pl>
Thu, 24 Mar 2005 17:49:56 +0000 (17:49 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33032 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/cshelp.cpp
src/html/helpctrl.cpp

index 5d5f7f200f398aea09c541104d2eca86d7ece2e2..31af18593eccb88fb6c91207a4619f393198d0d6 100644 (file)
@@ -384,6 +384,8 @@ bool wxSimpleHelpProvider::ShowHelp(wxWindowBase *window)
 
         return true;
     }
+#else
+    wxUnusedVar(window);
 #endif // wxUSE_TIPWINDOW
 
     return false;
index 9ac2bce17817b5dc822914d653560a054b800cf7..bab78b152062e51660a0d21f871f7c489e2a50dd 100644 (file)
@@ -184,7 +184,7 @@ bool wxHtmlHelpController::Initialize(const wxString& file)
     wxString dir, filename, ext;
     wxSplitPath(file, & dir, & filename, & ext);
 
-    if (!dir.IsEmpty())
+    if (!dir.empty())
         dir = dir + wxFILE_SEP_PATH;
 
     // Try to find a suitable file
@@ -239,6 +239,8 @@ bool wxHtmlHelpController::DisplayTextPopup(const wxString& text, const wxPoint&
 
         return true;
     }
+#else
+    wxUnusedVar(text);
 #endif // wxUSE_TIPWINDOW
 
     return false;