1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-05 07:24:44 -04:00

Remove comparison of strings and chars for #1713

This commit is contained in:
Jon Beniston
2023-06-23 14:27:59 +01:00
parent b4847f1d7a
commit b092a0196d
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -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;