Add virtual dtor to wxMSW CustomDraw class

This class is used polymorphically and needs a virtual dtor.

See https://github.com/wxWidgets/wxWidgets/pull/276
This commit is contained in:
Maarten Bent 2016-04-23 20:24:49 +02:00 committed by Vadim Zeitlin
parent 1bcc5aa7e4
commit 82ed51d167

View File

@ -29,6 +29,11 @@ public:
{
}
// Virtual dtor for the base class.
virtual ~CustomDraw()
{
}
// Implementation of NM_CUSTOMDRAW handler, returns one of CDRF_XXX
// constants, possibly CDRF_DODEFAULT if custom drawing is not necessary.
LPARAM HandleCustomDraw(LPARAM lParam);