summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2018-09-25 19:59:27 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-10-12 08:22:44 -0700
commit2954bc5f222ff3808a2b51be4a6f1c13f6ca8944 (patch)
tree09f6efb5298d6d163ef0df05bc61aae2fbad2e84
parenta5416b9bead1cfc886531728c2e7602ca75b75c6 (diff)
downloadsubsurface-2954bc5f222ff3808a2b51be4a6f1c13f6ca8944.tar.gz
Bluetooth: move declaration and make variable file scoped
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--core/btdiscovery.cpp4
1 files changed, 3 insertions, 1 deletions
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<QString, dc_descriptor_t *> descriptorLookup;
+namespace {
+ QHash<QString, QBluetoothDeviceInfo> 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<QString, QBluetoothDeviceInfo> btDeviceInfo;
bool isBluetoothAddress(const QString &address)
{