mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-07 02:35:33 +08:00
When calling arg() on a QString constructed from a literal, use QStringLiteral.
This commit is contained in:
@@ -31,8 +31,7 @@ namespace BlackMisc
|
||||
QString CRemoteFile::getNameAndSize() const
|
||||
{
|
||||
if (!this->hasName()) { return {}; }
|
||||
static const QString s("%1 (%2)");
|
||||
return s.arg(this->getName(), this->getSizeHumanReadable());
|
||||
return QStringLiteral("%1 (%2)").arg(this->getName(), this->getSizeHumanReadable());
|
||||
}
|
||||
|
||||
bool CRemoteFile::matchesName(const QString &name) const
|
||||
|
||||
Reference in New Issue
Block a user