]> git.saurik.com Git - wxWidgets.git/commitdiff
Added parenthesis around macro arguments
authorJaakko Salli <jaakko.salli@dnainternet.net>
Thu, 22 Apr 2010 14:06:00 +0000 (14:06 +0000)
committerJaakko Salli <jaakko.salli@dnainternet.net>
Thu, 22 Apr 2010 14:06:00 +0000 (14:06 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64108 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/any.h

index 64930ef66b9718501aaef13b64b2027cb30f4ac4..b5dac8fb7caf8f2391a92a9a4bb7ced19158c2b2 100644 (file)
@@ -1018,13 +1018,13 @@ private:
 //
 // This method of checking the type is compatible with VC6
 #define wxANY_CHECK_TYPE(any, T) \
 //
 // This method of checking the type is compatible with VC6
 #define wxANY_CHECK_TYPE(any, T) \
-    wxANY_VALUE_TYPE_CHECK_TYPE(any.GetType(), T)
+    wxANY_VALUE_TYPE_CHECK_TYPE((any).GetType(), T)
 
 
 //
 // This method of getting the value is compatible with VC6
 #define wxANY_AS(any, T) \
 
 
 //
 // This method of getting the value is compatible with VC6
 #define wxANY_AS(any, T) \
-    any.As(static_cast<T*>(NULL))
+    (any).As(static_cast<T*>(NULL))
 
 
 template<typename T>
 
 
 template<typename T>