diff options
author | Fabian Bumberger <fbumberger@rim.com> | 2013-07-31 15:49:23 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-07-31 16:33:23 +0200 |
commit | 7b1622fc3f00b64b608670c8d3691b0e3fbb71bc (patch) | |
tree | 53baf1ea4135ebeb308d1142acf0932c73e4ed75 /src/bluetooth/qnx | |
parent | a1d86abb9b297e9a6054b1e814e89b78a96a846c (diff) | |
download | qtconnectivity-7b1622fc3f00b64b608670c8d3691b0e3fbb71bc.tar.gz |
QNX: Fix compiler warnings
Change-Id: Ia73b3a89464d5913bec4cc528047283475297083
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Diffstat (limited to 'src/bluetooth/qnx')
-rw-r--r-- | src/bluetooth/qnx/ppshelpers.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/bluetooth/qnx/ppshelpers.cpp b/src/bluetooth/qnx/ppshelpers.cpp index 474b5bdb..9524fbe3 100644 --- a/src/bluetooth/qnx/ppshelpers.cpp +++ b/src/bluetooth/qnx/ppshelpers.cpp @@ -181,7 +181,7 @@ int __newHostMode = -1; void ppsDecodeControlResponse() { ppsResult result; - ResultType resType; + ResultType resType = UNKNOWN; if (ppsCtrlFD != -1) { char buf[ppsBufferSize]; @@ -247,11 +247,11 @@ void ppsDecodeControlResponse() pps_decoder_cleanup(&ppsDecoder); } - if (result.msg == "radio_init") { + if (result.msg == QStringLiteral("radio_init")) { qBBBluetoothDebug() << "Radio initialized"; - } else if (result.msg == "access_changed" && __newHostMode != -1) { + } else if (result.msg == QStringLiteral("access_changed") && __newHostMode != -1) { qBBBluetoothDebug() << "Access changed after radio init"; - ppsSendControlMessage("set_access", QString("{\"access\":%1}").arg(__newHostMode), 0); + ppsSendControlMessage("set_access", QStringLiteral("{\"access\":%1}").arg(__newHostMode), 0); __newHostMode = -1; } |