mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-22 16:08:39 -05:00
Fix gcc warnings
This commit is contained in:
parent
6a0a7e0bd9
commit
bc29c5105d
@ -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 == " ")))
|
||||
{
|
||||
|
@ -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];
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user