summaryrefslogtreecommitdiffstats
path: root/src/bluetooth
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@digia.com>2013-12-05 18:35:31 +0100
committerFrederik Gladhorn <frederik.gladhorn@digia.com>2013-12-05 18:35:31 +0100
commita34f6ee44bae37defd3c6dc7df863cd14796fa40 (patch)
tree047fddccdbf7787c648933b9bc5fec2b3d8ed276 /src/bluetooth
parent9adda0a194e10b39ccfadb208309e91ac02c9cae (diff)
parentf8ff297e7983d2ec15a85ffd4a815b0500ebadb9 (diff)
Merge remote-tracking branch 'origin/stable' into dev
Diffstat (limited to 'src/bluetooth')
-rw-r--r--src/bluetooth/qbluetoothservicediscoveryagent_qnx.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/bluetooth/qbluetoothservicediscoveryagent_qnx.cpp b/src/bluetooth/qbluetoothservicediscoveryagent_qnx.cpp
index 319e631f..1f11174f 100644
--- a/src/bluetooth/qbluetoothservicediscoveryagent_qnx.cpp
+++ b/src/bluetooth/qbluetoothservicediscoveryagent_qnx.cpp
@@ -195,10 +195,10 @@ void QBluetoothServiceDiscoveryAgentPrivate::start(const QBluetoothAddress &addr
_q_serviceDiscoveryFinished();
#else
qBBBluetoothDebug() << "Starting Service discovery for" << address.toString();
- const char *filePath = QByteArray("/pps/services/bluetooth/remote_devices/").append(address.toString().toUtf8().constData()).constData();
- if ((m_rdfd = qt_safe_open(filePath, O_RDONLY)) == -1) {
- if (QFile::exists(QLatin1String(filePath) + QLatin1String("-00")) ||
- QFile::exists(QLatin1String(filePath) + QLatin1String("-01"))) {
+ QByteArray filePath = QByteArray("/pps/services/bluetooth/remote_devices/").append(address.toString().toUtf8().constData());
+ if ((m_rdfd = qt_safe_open(filePath.constData(), O_RDONLY)) == -1) {
+ if (QFile::exists(filePath + QLatin1String("-00")) ||
+ QFile::exists(filePath + QLatin1String("-01"))) {
qBBBluetoothDebug() << "LE device discovered...skipping";
} else {
qWarning() << "Failed to open " << filePath;