From 2954bc5f222ff3808a2b51be4a6f1c13f6ca8944 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Tue, 25 Sep 2018 19:59:27 -0700 Subject: Bluetooth: move declaration and make variable file scoped Signed-off-by: Dirk Hohndel --- core/btdiscovery.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/btdiscovery.cpp b/core/btdiscovery.cpp index a13cc7078..e4c17902e 100644 --- a/core/btdiscovery.cpp +++ b/core/btdiscovery.cpp @@ -10,6 +10,9 @@ extern QMap descriptorLookup; +namespace { + QHash btDeviceInfo; +} BTDiscovery *BTDiscovery::m_instance = NULL; static dc_descriptor_t *getDeviceType(QString btName) @@ -298,7 +301,6 @@ bool BTDiscovery::checkException(const char* method, const QAndroidJniObject *ob } #endif // Q_OS_ANDROID -QHash btDeviceInfo; bool isBluetoothAddress(const QString &address) { -- cgit v1.2.3-70-g09d2