From: Václav Slavík Date: Tue, 26 Jun 2007 10:24:09 +0000 (+0000) Subject: compilation fixes for some cases X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/bcbb02480bb50512bf1606d7b5616a9e1935877e compilation fixes for some cases git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46954 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/regex.cpp b/src/common/regex.cpp index bc0faa554e..110166bbba 100644 --- a/src/common/regex.cpp +++ b/src/common/regex.cpp @@ -58,9 +58,9 @@ # define WXREGEX_USING_BUILTIN # define WXREGEX_IF_NEED_LEN(x) ,x # if wxUSE_UNICODE -# define WXREGEX_CHAR(x) x.wc_str() +# define WXREGEX_CHAR(x) (x).wc_str() # else -# define WXREGEX_CHAR(x) x.mb_str() +# define WXREGEX_CHAR(x) (x).mb_str() # endif #else # ifdef HAVE_RE_SEARCH @@ -72,7 +72,7 @@ # if wxUSE_UNICODE # define WXREGEX_CONVERT_TO_MB # endif -# define WXREGEX_CHAR(x) x.mb_str() +# define WXREGEX_CHAR(x) (x).mb_str() # define wx_regfree regfree # define wx_regerror regerror #endif