summaryrefslogtreecommitdiffstats
path: root/src/bluetooth/qbluetoothlocaldevice_qnx.cpp
diff options
context:
space:
mode:
authorFabian Bumberger <fbumberger@rim.com>2013-07-31 15:49:23 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-07-31 16:33:23 +0200
commit7b1622fc3f00b64b608670c8d3691b0e3fbb71bc (patch)
tree53baf1ea4135ebeb308d1142acf0932c73e4ed75 /src/bluetooth/qbluetoothlocaldevice_qnx.cpp
parenta1d86abb9b297e9a6054b1e814e89b78a96a846c (diff)
QNX: Fix compiler warnings
Change-Id: Ia73b3a89464d5913bec4cc528047283475297083 Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Diffstat (limited to 'src/bluetooth/qbluetoothlocaldevice_qnx.cpp')
-rw-r--r--src/bluetooth/qbluetoothlocaldevice_qnx.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/bluetooth/qbluetoothlocaldevice_qnx.cpp b/src/bluetooth/qbluetoothlocaldevice_qnx.cpp
index 02fe647b..4bf00082 100644
--- a/src/bluetooth/qbluetoothlocaldevice_qnx.cpp
+++ b/src/bluetooth/qbluetoothlocaldevice_qnx.cpp
@@ -128,13 +128,13 @@ void QBluetoothLocalDevice::pairingConfirmation(bool confirmation)
QBluetoothLocalDevicePrivate::QBluetoothLocalDevicePrivate()
{
ppsRegisterControl();
- ppsRegisterForEvent(QString("access_changed"), this);
+ ppsRegisterForEvent(QStringLiteral("access_changed"), this);
}
QBluetoothLocalDevicePrivate::~QBluetoothLocalDevicePrivate()
{
ppsUnregisterControl(this);
- ppsUnreguisterForEvent(QString("access_changed"), this);
+ ppsUnreguisterForEvent(QStringLiteral("access_changed"), this);
}
bool QBluetoothLocalDevicePrivate::isValid() const
@@ -219,7 +219,7 @@ void QBluetoothLocalDevicePrivate::setAccess(int access)
if (!ppsReadSetting("enabled").toBool()) { //We cannot set the host mode until BT is fully powered up
__newHostMode = access;
} else {
- ppsSendControlMessage("set_access", QString("{\"access\":%1}").arg(access), 0);
+ ppsSendControlMessage("set_access", QStringLiteral("{\"access\":%1}").arg(access), 0);
}
}
@@ -235,9 +235,9 @@ void QBluetoothLocalDevicePrivate::controlReply(ppsResult result)
void QBluetoothLocalDevicePrivate::controlEvent(ppsResult result)
{
- if (result.msg == QString("access_changed")) {
+ if (result.msg == QStringLiteral("access_changed")) {
if (__newHostMode == -1 && result.dat.size() > 1 &&
- result.dat.first() == "level") {
+ result.dat.first() == QStringLiteral("level")) {
qBBBluetoothDebug() << "New Host mode" << hostMode();
Q_EMIT q_ptr->hostModeStateChanged(hostMode());
}