From 329ac7daebd1a8eeae0cab3134ddc35a55315992 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 9 Jun 2004 22:01:54 +0000 Subject: [PATCH] explicit this-> is required by C++ standard, not g++, in WinStruct template git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27720 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/msw/private.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/wx/msw/private.h b/include/wx/msw/private.h index 46d14af631..31954e87c2 100644 --- a/include/wx/msw/private.h +++ b/include/wx/msw/private.h @@ -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); } }; -- 2.50.0