From 04b84295c852d46ed1cf52bc59cd5b94a971acde Mon Sep 17 00:00:00 2001 From: Roland Winklmeier Date: Sun, 16 Aug 2015 17:11:09 +0200 Subject: [PATCH] Fix wrong usage of QString::arg() QString::arg() does not change the object itself, but returns a copy with the place marker replaced. --- src/blackmisc/simulation/distributor.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/blackmisc/simulation/distributor.cpp b/src/blackmisc/simulation/distributor.cpp index 150c67358..efe0f9bd8 100644 --- a/src/blackmisc/simulation/distributor.cpp +++ b/src/blackmisc/simulation/distributor.cpp @@ -62,8 +62,7 @@ namespace BlackMisc QString CDistributor::convertToQString(bool i18n) const { Q_UNUSED(i18n); - QString s("Id: %1"); - s.arg(m_dbKey); + QString s = QString("Id: %1").arg(m_dbKey); if (this->hasAlias1()) { s.append(" ").append(m_alias1); } if (this->hasAlias2()) { s.append(" ").append(m_alias2); } return s;