mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-21 15:08:01 +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>
|
#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 {
|
struct TrackPanelDrawingContext {
|
||||||
wxDC &dc;
|
wxDC &dc;
|
||||||
UIHandlePtr target;
|
UIHandlePtr target;
|
||||||
wxMouseState lastState;
|
wxMouseState lastState;
|
||||||
|
|
||||||
|
// This redundancy fixes an MSVC compiler warning:
|
||||||
|
TrackPanelDrawingContext() = delete;
|
||||||
};
|
};
|
||||||
|
|
||||||
#pragma warning( pop )
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user