Use wxZeroMemory() rather than memset() for clearing struct fields

This does the same thing but avoids gcc 8 -Wclass-memaccess warning
(harmless in this case, but potentially useful elsewhere, so it seems
better to work around rather than disable it).
This commit is contained in:
Vadim Zeitlin
2018-05-29 13:28:59 +02:00
parent 2ec97b7bc6
commit a17a8f667f

View File

@@ -92,7 +92,7 @@ struct NotifyIconData : public NOTIFYICONDATA
{
NotifyIconData(WXHWND hwnd)
{
memset(this, 0, sizeof(NOTIFYICONDATA));
wxZeroMemory(*this);
// Since Vista there is a new member hBalloonIcon which will be used
// if a user specified icon is specified in ShowBalloon(). For XP