mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-16 10:25:36 +08:00
When calling arg() on a QString constructed from a literal, use QStringLiteral.
This commit is contained in:
@@ -268,8 +268,7 @@ namespace BlackGui
|
||||
{
|
||||
if (dataCVariant.canConvert<QString>()) { return dataCVariant; }
|
||||
if (!dataCVariant.isValid()) { static const CVariant iv("invalid"); return iv; }
|
||||
static const QString s("Invalid type: '%1'");
|
||||
return CVariant::from(s.arg(dataCVariant.typeName()));
|
||||
return CVariant::from(QStringLiteral("Invalid type: '%1'").arg(dataCVariant.typeName()));
|
||||
}
|
||||
|
||||
Qt::ItemFlags CDelegateFormatter::flags(Qt::ItemFlags flags, bool editable) const
|
||||
|
||||
Reference in New Issue
Block a user