]> git.saurik.com Git - wxWidgets.git/commitdiff
define SetHelpText() to do nothing when wxUSE_HELP==0, otherwise we'd need to #ifdef...
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 20 Jun 2005 00:25:06 +0000 (00:25 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 20 Jun 2005 00:25:06 +0000 (00:25 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34716 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/window.h

index f2227aecb535c2172ec3de7d32cbc8278c918f87..cb66b14bc85e59a4f701f63e6e8e4e748d9e4a9c 100644 (file)
@@ -920,6 +920,10 @@ public:
     void SetHelpTextForId(const wxString& text);
         // get the help string associated with this window (may be empty)
     wxString GetHelpText() const;
+#else
+    // silently ignore SetHelpText() calls
+    void SetHelpText(const wxString& WXUNUSED(text)) { }
+    void SetHelpTextForId(const wxString& WXUNUSED(text)) { }
 #endif // wxUSE_HELP
 
     // tooltips