MSVC only allows static class members to be initialised in the class declaration
authorJohn Emmas <johne53@tiscali.co.uk>
Sat, 3 Feb 2018 14:58:45 +0000 (14:58 +0000)
committerJohn Emmas <johne53@tiscali.co.uk>
Sat, 3 Feb 2018 14:58:45 +0000 (14:58 +0000)
libs/surfaces/mackie/surface.cc
libs/surfaces/mackie/surface.h

index f8316e0e5b355a4f06eff4457d5d57d020a39fdb..8292e3d2b389e02bb0d11fb1e91c2f78acb528dc 100755 (executable)
@@ -107,6 +107,7 @@ Surface::Surface (MackieControlProtocol& mcp, const std::string& device_name, ui
        , _last_master_gain_written (-0.0f)
        , connection_state (0)
        , input_source (0)
+       , is_qcon (false)
 {
        DEBUG_TRACE (DEBUG::MackieControl, "Surface::Surface init\n");
 
index 082f0cc77ece93caa3d8ea87e6291e70d706b3f6..218e2e2cbc7c5b65978cd955af9cc56cbb9531b3 100644 (file)
@@ -209,7 +209,7 @@ public:
        int connection_state;
 
        // QCon Flag
-       bool is_qcon = false;
+       bool is_qcon;
 
        MidiByteArray display_line (std::string const& msg, int line_num);