summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-07-05 18:54:06 +0200
committerStanislaw Halik <sthalik@misaki.pl>2015-07-05 18:54:06 +0200
commit8d85ec4d3107c4c9868c12cc04fbc518e5fede17 (patch)
tree558ac2bd7b167bb2f5c644223da836fee5a3e667
parent0bf534ff329cabaa61a0dddb8671827577407aba (diff)
simconnect: we can make qlibrary non-static, no crashes
-rw-r--r--ftnoir_protocol_sc/ftnoir_protocol_sc.cpp2
-rw-r--r--ftnoir_protocol_sc/ftnoir_protocol_sc.h1
2 files changed, 1 insertions, 2 deletions
diff --git a/ftnoir_protocol_sc/ftnoir_protocol_sc.cpp b/ftnoir_protocol_sc/ftnoir_protocol_sc.cpp
index 465d8d20..d6df58f0 100644
--- a/ftnoir_protocol_sc/ftnoir_protocol_sc.cpp
+++ b/ftnoir_protocol_sc/ftnoir_protocol_sc.cpp
@@ -29,8 +29,6 @@
#include "ftnoir_protocol_sc.h"
#include "opentrack/plugin-api.hpp"
-static QLibrary SCClientLib;
-
FTNoIR_Protocol::FTNoIR_Protocol() : should_stop(false), hSimConnect(nullptr)
{
}
diff --git a/ftnoir_protocol_sc/ftnoir_protocol_sc.h b/ftnoir_protocol_sc/ftnoir_protocol_sc.h
index b65bac85..cc41af0e 100644
--- a/ftnoir_protocol_sc/ftnoir_protocol_sc.h
+++ b/ftnoir_protocol_sc/ftnoir_protocol_sc.h
@@ -126,6 +126,7 @@ private:
HANDLE hSimConnect; // Handle to SimConnect
static void CALLBACK processNextSimconnectEvent(SIMCONNECT_RECV* pData, DWORD cbData, void *pContext);
settings s;
+ QLibrary SCClientLib;
};
class SCControls: public IProtocolDialog