From: Vadim Zeitlin Date: Mon, 20 Jun 2005 00:25:06 +0000 (+0000) Subject: define SetHelpText() to do nothing when wxUSE_HELP==0, otherwise we'd need to #ifdef... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/6c3c55cf30584177001a3fdbfe0a011cac3f8996 define SetHelpText() to do nothing when wxUSE_HELP==0, otherwise we'd need to #ifdef all its calls in wx code to allow compilation with wxUSE_HELP==0 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34716 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/window.h b/include/wx/window.h index f2227aecb5..cb66b14bc8 100644 --- a/include/wx/window.h +++ b/include/wx/window.h @@ -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