Formatting, minor tweaks

This commit is contained in:
Klaus Basan
2018-04-27 02:32:41 +02:00
committed by Roland Winklmeier
parent a8ab2a37b8
commit 1f3e5c6abf
11 changed files with 34 additions and 13 deletions

View File

@@ -357,7 +357,7 @@ namespace BlackMisc
template <class MU, class PQ>
QString CPhysicalQuantity<MU, PQ>::convertToQString(bool i18n) const
{
if (this->isNull()) { return i18n ? QCoreApplication::translate("CPhysicalQuantity", "undefined") : "undefined"; }
if (this->isNull()) { return QStringLiteral("null"); }
return this->valueRoundedWithUnit(this->getUnit(), -1, i18n);
}