diff options
author | Fabian Bumberger <fbumberger@rim.com> | 2013-12-19 16:24:11 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-01-07 16:19:55 +0100 |
commit | 0abf615fe2f18dc2ebf66ca7874b40ed6ba126c9 (patch) | |
tree | 4600450b4070a923daaf69ed0f8accbe1c7eeb98 /src/bluetooth/qbluetoothservicediscoveryagent_qnx.cpp | |
parent | 5e9a7dee5a2562c518f670337f6e3cbe1db64f8a (diff) |
Fix remaining compiler warnings in QtConnectivity module
Change-Id: Iafadb39642c6b2944e8a873bdee49fb87e3ed5e9
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Diffstat (limited to 'src/bluetooth/qbluetoothservicediscoveryagent_qnx.cpp')
-rw-r--r-- | src/bluetooth/qbluetoothservicediscoveryagent_qnx.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bluetooth/qbluetoothservicediscoveryagent_qnx.cpp b/src/bluetooth/qbluetoothservicediscoveryagent_qnx.cpp index 4cf73dc1..f88e7b70 100644 --- a/src/bluetooth/qbluetoothservicediscoveryagent_qnx.cpp +++ b/src/bluetooth/qbluetoothservicediscoveryagent_qnx.cpp @@ -75,8 +75,8 @@ void QBluetoothServiceDiscoveryAgentPrivate::start(const QBluetoothAddress &addr { Q_Q(QBluetoothServiceDiscoveryAgent); qCDebug(QT_BT_QNX) << "Starting Service discovery for" << address.toString(); - QByteArray filePath = QByteArray("/pps/services/bluetooth/remote_devices/").append(address.toString().toUtf8().constData()); - if ((m_rdfd = qt_safe_open(filePath.constData(), O_RDONLY)) == -1) { + const QString filePath = QStringLiteral("/pps/services/bluetooth/remote_devices/").append(address.toString()); + if ((m_rdfd = qt_safe_open(filePath.toLocal8Bit().constData(), O_RDONLY)) == -1) { if (QFile::exists(filePath + QLatin1String("-00")) || QFile::exists(filePath + QLatin1String("-01"))) { qCDebug(QT_BT_QNX) << "LE device discovered...skipping"; |