]> git.saurik.com Git - wxWidgets.git/commitdiff
No real changes, just add extra brackets to wxGTK_CONV() macro.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 8 Apr 2012 18:10:21 +0000 (18:10 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 8 Apr 2012 18:10:21 +0000 (18:10 +0000)
These brackets are probably not really necessary but add them just in case
they can help with parsing some strange expressions and for consistency with
the other wxGTK_CONV_XXX() macros.

See #14035.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71153 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/gtk/private.h

index 96deaf28b329a5bf8169c76734d8d2babb97ad70..728a24e1b18f162b3ee4e1c9e8fb278854fc9b6d 100644 (file)
@@ -28,7 +28,7 @@
 extern const gchar *wx_pango_version_check(int major, int minor, int micro);
 
 #if wxUSE_UNICODE
-    #define wxGTK_CONV(s) s.utf8_str()
+    #define wxGTK_CONV(s) (s).utf8_str()
     #define wxGTK_CONV_ENC(s, enc) wxGTK_CONV((s))
     #define wxGTK_CONV_FONT(s, font) wxGTK_CONV((s))
     #define wxGTK_CONV_SYS(s) wxGTK_CONV((s))