When calling arg() on a QString constructed from a literal, use QStringLiteral.

This commit is contained in:
Mat Sutcliffe
2018-12-20 21:32:39 +00:00
parent ace7650ebe
commit 6c05c5249d
99 changed files with 227 additions and 291 deletions

View File

@@ -65,7 +65,7 @@ namespace BlackMisc
QString CVisibilityLayer::convertToQString(bool /** i18n **/) const
{
QString visibilityAsString = QString("Visibility: %1 from %2 to %3");
QString visibilityAsString = QStringLiteral("Visibility: %1 from %2 to %3");
visibilityAsString = visibilityAsString.arg(m_visibility.toQString(), m_base.toQString(), m_top.toQString());
return visibilityAsString;
}