1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-26 01:39:05 -05:00

Fix gcc warnings

This commit is contained in:
Jon Beniston 2023-03-03 16:46:03 +00:00
parent 6a0a7e0bd9
commit bc29c5105d
2 changed files with 5 additions and 6 deletions

View File

@ -164,7 +164,7 @@ void BaudotDecoder::init()
QString BaudotDecoder::decode(char bits)
{
QString c = m_figure ? m_figures[bits] : m_letters[bits];
QString c = m_figure ? m_figures[(int)bits] : m_letters[(int)bits];
if ((c == '>') || (m_unshiftOnSpace && (c == " ")))
{

View File

@ -270,16 +270,15 @@ const NavtexTransmitter* NavtexTransmitter::getTransmitter(QTime time, int area,
}
NavtexMessage::NavtexMessage(QDateTime dateTime, const QString& stationId, const QString& typeId, const QString& id, const QString& message) :
m_dateTime(dateTime),
m_stationId(stationId),
m_typeId(typeId),
m_id(id),
m_message(message),
m_dateTime(dateTime),
m_valid(true)
{
}
NavtexMessage::NavtexMessage(const QString& text)
{
m_dateTime = QDateTime::currentDateTime();
@ -448,7 +447,7 @@ QString SitorBDecoder::printable(char c)
} else if (c == 0x7) {
return "Bell";
} else {
return c;
return QString("%1").arg(c);
}
}
@ -721,9 +720,9 @@ const char SitorBDecoder::m_ccir476FigureSetDecode[128] = {
char SitorBDecoder::ccir476Decode(char c)
{
if (m_figureSet) {
return m_ccir476FigureSetDecode[c];
return m_ccir476FigureSetDecode[(int)c];
} else {
return m_ccir476LetterSetDecode[c];
return m_ccir476LetterSetDecode[(int)c];
}
}