mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 21:56:43 +08:00
Minor fixes: Formatting, string generation
This commit is contained in:
committed by
Mathew Sutcliffe
parent
7e95d4a550
commit
5f18707c9c
@@ -17,7 +17,6 @@ namespace BlackMisc
|
||||
{
|
||||
namespace Aviation
|
||||
{
|
||||
|
||||
CAircraftEngine::CAircraftEngine(int number, bool on) : m_number(number), m_on(on)
|
||||
{
|
||||
Q_ASSERT_X(number > 0, "CAircraftEngine", "Engine number have to be > 1");
|
||||
@@ -32,11 +31,8 @@ namespace BlackMisc
|
||||
QString CAircraftEngine::convertToQString(bool i18n) const
|
||||
{
|
||||
Q_UNUSED(i18n);
|
||||
QString s = QString::number(m_number);
|
||||
s += " ";
|
||||
s += BlackMisc::boolToOnOff(m_on);
|
||||
return s;
|
||||
static const QString s("%1 on: %2");
|
||||
return s.arg(m_number).arg(BlackMisc::boolToOnOff(m_on));
|
||||
}
|
||||
|
||||
} // namespace
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user