]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/hyperlnkcmn.cpp
implement button support for pre-XP systems (or with themes disabled); using only...
[wxWidgets.git] / src / common / hyperlnkcmn.cpp
index 83e3349d75bbb91ff24f46a82acb2fced97ef4a4..582147736d0679088e240fa1e487e69c4777038d 100644 (file)
@@ -51,9 +51,12 @@ const char wxHyperlinkCtrlNameStr[] = "hyperlink";
 // wxHyperlinkCtrlBase
 // ----------------------------------------------------------------------------
 
-#ifdef __WXDEBUG__
-void wxHyperlinkCtrlBase::CheckParams(const wxString& label, const wxString& url, long style)
+void
+wxHyperlinkCtrlBase::CheckParams(const wxString& label,
+                                 const wxString& url,
+                                 long style)
 {
+#if wxDEBUG_LEVEL
     wxASSERT_MSG(!url.empty() || !label.empty(),
                  wxT("Both URL and label are empty ?"));
 
@@ -62,8 +65,12 @@ void wxHyperlinkCtrlBase::CheckParams(const wxString& label, const wxString& url
                     (int)((style & wxHL_ALIGN_RIGHT) != 0);
     wxASSERT_MSG(alignment == 1,
         wxT("Specify exactly one align flag!"));
+#else // !wxDEBUG_LEVEL
+    wxUnusedVar(label);
+    wxUnusedVar(url);
+    wxUnusedVar(style);
+#endif // wxDEBUG_LEVEL/!wxDEBUG_LEVEL
 }
-#endif
 
 void wxHyperlinkCtrlBase::SendEvent()
 {