mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-03 15:45:46 +08:00
Fix wrong usage of QString::arg()
QString::arg() does not change the object itself, but returns a copy with the place marker replaced.
This commit is contained in:
committed by
Mathew Sutcliffe
parent
e9c362f8ac
commit
04b84295c8
@@ -62,8 +62,7 @@ namespace BlackMisc
|
|||||||
QString CDistributor::convertToQString(bool i18n) const
|
QString CDistributor::convertToQString(bool i18n) const
|
||||||
{
|
{
|
||||||
Q_UNUSED(i18n);
|
Q_UNUSED(i18n);
|
||||||
QString s("Id: %1");
|
QString s = QString("Id: %1").arg(m_dbKey);
|
||||||
s.arg(m_dbKey);
|
|
||||||
if (this->hasAlias1()) { s.append(" ").append(m_alias1); }
|
if (this->hasAlias1()) { s.append(" ").append(m_alias1); }
|
||||||
if (this->hasAlias2()) { s.append(" ").append(m_alias2); }
|
if (this->hasAlias2()) { s.append(" ").append(m_alias2); }
|
||||||
return s;
|
return s;
|
||||||
|
|||||||
Reference in New Issue
Block a user