mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 04:25:35 +08:00
refs #937 Resolved clazy warnings: QString::arg.
This commit is contained in:
@@ -380,7 +380,7 @@ namespace BlackMisc
|
||||
|
||||
// todo: Replace assert with input validation
|
||||
Q_ASSERT_X(CNetworkUtils::isValidIPv4Address(p), "CDBusServer::p2pAddress", "Wrong IP in String");
|
||||
return QString("tcp:host=%1,port=%2").arg(h).arg(p);
|
||||
return QString("tcp:host=%1,port=%2").arg(h, p);
|
||||
}
|
||||
|
||||
const QString &CDBusServer::p2pConnectionName()
|
||||
|
||||
@@ -28,7 +28,7 @@ namespace BlackMisc
|
||||
QString CCoordinateGeodetic::convertToQString(bool i18n) const
|
||||
{
|
||||
QString s = "Geodetic: {%1, %2, %3}";
|
||||
return s.arg(this->latitude().valueRoundedWithUnit(6, i18n)).arg(this->longitude().valueRoundedWithUnit(6, i18n)).arg(this->m_geodeticHeight.valueRoundedWithUnit(6, i18n));
|
||||
return s.arg(this->latitude().valueRoundedWithUnit(6, i18n), this->longitude().valueRoundedWithUnit(6, i18n), this->m_geodeticHeight.valueRoundedWithUnit(6, i18n));
|
||||
}
|
||||
|
||||
CCoordinateGeodetic CCoordinateGeodetic::fromWgs84(const QString &latitudeWgs84, const QString &longitudeWgs84, const CAltitude &geodeticHeight)
|
||||
|
||||
@@ -114,7 +114,7 @@ namespace BlackMisc
|
||||
QString m = QString("00%1").arg(QString::number(parts.at(1))).right(2);
|
||||
QString s = QString("00%1").arg(QString::number(parts.at(2))).right(2);
|
||||
|
||||
QString fs = QString("%1:%2:%3").arg(h).arg(m).arg(s);
|
||||
QString fs = QString("%1:%2:%3").arg(h, m, s);
|
||||
if (this->isNegativeWithEpsilonConsidered())
|
||||
{
|
||||
return QString("-").append(fs);
|
||||
@@ -142,7 +142,7 @@ namespace BlackMisc
|
||||
QList<int> parts = getHrsMinSecParts();
|
||||
QString h = QString("00%1").arg(QString::number(parts.at(0))).right(2);
|
||||
QString m = QString("00%1").arg(QString::number(parts.at(1))).right(2);
|
||||
QString fs = QString("%1:%2").arg(h).arg(m);
|
||||
QString fs = QString("%1:%2").arg(h, m);
|
||||
if (this->isNegativeWithEpsilonConsidered())
|
||||
{
|
||||
return QString("-").append(fs);
|
||||
|
||||
@@ -80,7 +80,7 @@ namespace BlackMisc
|
||||
|
||||
if (m_directionFrom != CAngle() && m_directionTo != CAngle())
|
||||
{
|
||||
windAsString += QString("variable between %1 and %2 ").arg(m_directionFrom.toQString()).arg(m_directionTo.toQString());
|
||||
windAsString += QString("variable between %1 and %2 ").arg(m_directionFrom.toQString(), m_directionTo.toQString());
|
||||
}
|
||||
|
||||
windAsString += QString("at %2").arg(m_speed.toQString());
|
||||
|
||||
Reference in New Issue
Block a user