refs #407, FSX driver warnings as described

* also fixed some signed / unsigned issues
This commit is contained in:
Klaus Basan
2015-04-19 01:33:04 +02:00
parent f870fb3cf9
commit dba47d6c8c
4 changed files with 20 additions and 21 deletions

View File

@@ -63,7 +63,7 @@ namespace BlackMisc
CValueObject(name), m_transponderCode(0), m_transponderMode(transponderMode)
{
bool ok = false;
this->m_transponderCode = transponderCode.toUInt(&ok);
this->m_transponderCode = transponderCode.toInt(&ok);
if (!ok) this->m_transponderCode = -1; // will cause assert / exception
}
@@ -72,7 +72,7 @@ namespace BlackMisc
CValueObject(name), m_transponderCode(0), m_transponderMode(StateStandby)
{
bool ok = false;
this->m_transponderCode = transponderCode.toUInt(&ok);
this->m_transponderCode = transponderCode.toInt(&ok);
if (!ok) this->m_transponderCode = -1; // will cause assert / exception
this->setModeAsString(transponderMode);
}