diff --git a/plugins/channelrx/demodrtty/rttydemodsink.cpp b/plugins/channelrx/demodrtty/rttydemodsink.cpp index b9d094620..2f987994d 100644 --- a/plugins/channelrx/demodrtty/rttydemodsink.cpp +++ b/plugins/channelrx/demodrtty/rttydemodsink.cpp @@ -517,7 +517,7 @@ void RttyDemodSink::receiveBit(bool bit) else { QString c = m_rttyDecoder.decode((m_bits >> 1) & 0x1f); - if ((c != '\0') && (c != '<') && (c != '>') && (c != '^')) + if ((c != "\0") && (c != "<") && (c != ">") && (c != "^")) { // Calculate average power over received byte float rssi = CalcDb::dbPower(m_rssiMagSqSum / m_rssiMagSqCount); diff --git a/sdrbase/util/baudot.cpp b/sdrbase/util/baudot.cpp index ed7b95eb2..f11319255 100644 --- a/sdrbase/util/baudot.cpp +++ b/sdrbase/util/baudot.cpp @@ -166,7 +166,7 @@ QString BaudotDecoder::decode(char bits) { QString c = m_figure ? m_figures[(int)bits] : m_letters[(int)bits]; - if ((c == '>') || (m_unshiftOnSpace && (c == " "))) + if ((c == ">") || (m_unshiftOnSpace && (c == " "))) { // Switch to letters m_figure = false; @@ -174,17 +174,17 @@ QString BaudotDecoder::decode(char bits) m_letters = Baudot::m_ita2Letter; } } - if (c == '<') + if (c == "<") { // Switch to figures m_figure = true; } - if ((m_characterSet == Baudot::RUSSIAN) && (c == '\0')) + if ((m_characterSet == Baudot::RUSSIAN) && (c == "\0")) { // Switch to Cyrillic m_figure = false; m_letters = Baudot::m_russianLetter; - c = '^'; + c = "^"; } return c;