From: Vadim Zeitlin Date: Wed, 9 Jun 2004 22:01:54 +0000 (+0000) Subject: explicit this-> is required by C++ standard, not g++, in WinStruct template X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/329ac7daebd1a8eeae0cab3134ddc35a55315992 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 --- 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); } };