mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-03 07:35:48 +08:00
Q_UNREACHABLE fix, minor style adjustments
This commit is contained in:
@@ -14,7 +14,7 @@ namespace BlackMisc
|
||||
{
|
||||
QString CFacilityType::convertToQString(bool i18n) const
|
||||
{
|
||||
Q_UNUSED(i18n);
|
||||
Q_UNUSED(i18n)
|
||||
|
||||
switch (m_facilityType)
|
||||
{
|
||||
@@ -29,7 +29,7 @@ namespace BlackMisc
|
||||
}
|
||||
|
||||
Q_UNREACHABLE();
|
||||
return {};
|
||||
return QStringLiteral("Unknown");
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
@@ -14,11 +14,11 @@ namespace BlackMisc
|
||||
{
|
||||
QString CLoginMode::convertToQString(bool i18n) const
|
||||
{
|
||||
Q_UNUSED(i18n);
|
||||
Q_UNUSED(i18n)
|
||||
|
||||
switch (m_loginMode)
|
||||
{
|
||||
case Pilot: return QStringLiteral("Pilot");
|
||||
case Pilot: return QStringLiteral("Pilot");
|
||||
case Observer: return QStringLiteral("Observer");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user