Revert the reversion of the elegant fix of wrong MSVC compiler warning

This reverts commit 57c68d144e.
This commit is contained in:
Paul Licameli 2018-01-13 14:04:25 -05:00
parent ce697d052a
commit 5302dacf3d
1 changed files with 3 additions and 9 deletions

View File

@ -19,19 +19,13 @@ class wxDC;
#include <wx/mousestate.h>
// MSVC 2013 says this can't be instantiated - but in fact it can
// using {} syntax.
// As it's a bogus warning caused by a bug in MSVC2013, it's Ok to disable it.
#pragma warning( push )
#pragma warning( disable : 4510)
#pragma warning( disable : 4610)
struct TrackPanelDrawingContext {
wxDC &dc;
UIHandlePtr target;
wxMouseState lastState;
// This redundancy fixes an MSVC compiler warning:
TrackPanelDrawingContext() = delete;
};
#pragma warning( pop )
#endif