summaryrefslogtreecommitdiffstats
path: root/src/bluetooth/qnx/ppshelpers.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/bluetooth/qnx/ppshelpers.cpp')
-rw-r--r--src/bluetooth/qnx/ppshelpers.cpp8
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;
}