mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-19 22:27:43 +02:00
A more elegant fix of an (incorrect) MSVC compiler warning...
... that the structure can never be instantiated.
This commit is contained in:
parent
5358e41510
commit
2c3331424b
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user