]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix "Statement with no effect" warning.
authorMattia Barbon <mbarbon@cpan.org>
Sun, 3 Aug 2003 20:11:52 +0000 (20:11 +0000)
committerMattia Barbon <mbarbon@cpan.org>
Sun, 3 Aug 2003 20:11:52 +0000 (20:11 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22530 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/notebook.cpp

index 5a858d1a578371c8f0a5af8d9dcf33b28110ee55..9f8021bf01355a3a97e5e4a19838ecea4a3170e1 100644 (file)
@@ -822,7 +822,11 @@ wxColour wxNotebook::GetThemeBackgroundColour()
 }
 
 // Windows only: attempts to apply the UX theme page background to this page
+#if wxUSE_UXTHEME
 void wxNotebook::ApplyThemeBackground(wxWindow* window, const wxColour& colour)
+#else
+void wxNotebook::ApplyThemeBackground(wxWindow*, const wxColour&)
+#endif
 {
 #if wxUSE_UXTHEME
     // Don't set the background for buttons since this will
@@ -852,9 +856,6 @@ void wxNotebook::ApplyThemeBackground(wxWindow* window, const wxColour& colour)
         wxWindow *child = node->GetData();
         ApplyThemeBackground(child, colour);
     }
-#else
-    window;
-    colour;
 #endif
 }