mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-20 20:40:29 +08:00
When calling arg() on a QString constructed from a literal, use QStringLiteral.
This commit is contained in:
@@ -48,8 +48,7 @@ namespace BlackGui
|
||||
QString CGeneralGuiSettings::convertToQString(bool i18n) const
|
||||
{
|
||||
Q_UNUSED(i18n);
|
||||
static const QString s("Widget style: %1");
|
||||
return s.arg(this->m_widgetStyle);
|
||||
return QStringLiteral("Widget style: %1").arg(this->m_widgetStyle);
|
||||
}
|
||||
|
||||
BlackMisc::CVariant CGeneralGuiSettings::propertyByIndex(const BlackMisc::CPropertyIndex &index) const
|
||||
|
||||
@@ -65,8 +65,7 @@ namespace BlackGui
|
||||
QString CTextMessageSettings::convertToQString(bool i18n) const
|
||||
{
|
||||
Q_UNUSED(i18n);
|
||||
static const QString s("Private: %1 supervisor: %2 frequency: %3 all: %4");
|
||||
return s.arg(
|
||||
return QStringLiteral("Private: %1 supervisor: %2 frequency: %3 all: %4").arg(
|
||||
boolToOnOff(this->getPopupPrivateMessages()),
|
||||
boolToOnOff(this->getPopupSupervisorMessages()),
|
||||
boolToOnOff(this->getPopupFrequencyMessages()),
|
||||
|
||||
Reference in New Issue
Block a user