]> git.saurik.com Git - wxWidgets.git/commitdiff
Add curly braces around wxFAIL_MSG() to avoid g++ 4.3 warning.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 19 Sep 2009 16:29:42 +0000 (16:29 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 19 Sep 2009 16:29:42 +0000 (16:29 +0000)
g++ 4.3 warns about lack of explicit braces to make it happy.

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

include/wx/any.h

index 0a5b075c56cad07bf0958690dae7cdf33e8651d0..e4aacabba9706f692e76a486dbcdb7c1fa24f724 100644 (file)
@@ -718,7 +718,10 @@ public:
     T As(T* = NULL) const
     {
         if ( !wxAnyValueTypeImpl<T>::IsSameClass(m_type) )
+        {
             wxFAIL_MSG("Incorrect or non-convertible data type");
+        }
+
         return static_cast<T>(wxAnyValueTypeImpl<T>::GetValue(m_buffer));
     }