]> git.saurik.com Git - wxWidgets.git/commitdiff
explicit this-> is required by C++ standard, not g++, in WinStruct template
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 9 Jun 2004 22:01:54 +0000 (22:01 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 9 Jun 2004 22:01:54 +0000 (22:01 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27720 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/msw/private.h

index 46d14af63124a7b3afda140bc9fb416a73d2de47..31954e87c2a8c38b7e2488fa6784fc4c5f796dae 100644 (file)
@@ -325,7 +325,8 @@ struct WinStruct : public T
     WinStruct()
     {
         ::ZeroMemory(this, sizeof(T));
-        // NB: gcc-3.4 would give syntax error without "this->"
+
+        // explicit qualification is required here for this to be valid C++
         this->cbSize = sizeof(T);
     }
 };