X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/716cd4107bb8a5f37dea34507453be6870aaef3a..4f61e22c77b1a7cb148f6567996d816f72ac854f:/contrib/include/wx/applet/ifelsevar.h?ds=sidebyside diff --git a/contrib/include/wx/applet/ifelsevar.h b/contrib/include/wx/applet/ifelsevar.h index 851cc82a53..5a95b84ff7 100644 --- a/contrib/include/wx/applet/ifelsevar.h +++ b/contrib/include/wx/applet/ifelsevar.h @@ -66,8 +66,8 @@ public: public: // static function to retrieve any variable avaliable - static bool GetValue(const wxString &cls); -}; + static bool FindValue(const wxString &cls); + }; /*--------------------------------- MACROS --------------------------------*/ @@ -82,14 +82,13 @@ public: IMPLEMENT_DYNAMIC_CLASS(wxIfElseVariable##name##, wxIfElseVariable); \ bool wxIfElseVariable##name :: GetValue() const { -#define END_IFELSE_VARIABLE(name, returnval) \ +#define END_IFELSE_VARIABLE(returnval) \ return returnval; \ } #define IFELSE_VARIABLE(name, state) \ BEGIN_IFELSE_VARIABLE(##name##); \ - END_IFELSE_VARIABLE(##name##, bool (state)) - + END_IFELSE_VARIABLE(bool (state)) #endif // __WX_IFELSEVAR_H