diff --git a/src/base/unicodestrings.h b/src/base/unicodestrings.h index 58c6c7a40..d988965ff 100644 --- a/src/base/unicodestrings.h +++ b/src/base/unicodestrings.h @@ -37,7 +37,6 @@ inline const QString C_COPYRIGHT = u"©"_s; inline const QString C_INEQUALITY = u"≠"_s; inline const QString C_INFINITY = u"∞"_s; -inline const QString C_NON_BREAKING_SPACE = u" "_s; inline const QString C_THIN_SPACE = u" "_s; inline const QString C_UTP = u"μTP"_s; diff --git a/src/base/utils/misc.cpp b/src/base/utils/misc.cpp index 2622ff47d..057e11c6d 100644 --- a/src/base/utils/misc.cpp +++ b/src/base/utils/misc.cpp @@ -267,8 +267,7 @@ QString Utils::Misc::friendlyUnit(const qint64 bytes, const bool isSpeed, const const int digitPrecision = (precision >= 0) ? precision : friendlyUnitPrecision(result->unit); return Utils::String::fromDouble(result->value, digitPrecision) - + C_NON_BREAKING_SPACE - + unitString(result->unit, isSpeed); + + QChar::Nbsp + unitString(result->unit, isSpeed); } int Utils::Misc::friendlyUnitPrecision(const SizeUnit unit) diff --git a/src/gui/properties/speedplotview.cpp b/src/gui/properties/speedplotview.cpp index 248dcb248..5dcb3d092 100644 --- a/src/gui/properties/speedplotview.cpp +++ b/src/gui/properties/speedplotview.cpp @@ -94,8 +94,7 @@ namespace // check is there need for digits after decimal separator const int precision = (argValue < 10) ? friendlyUnitPrecision(unit) : 0; return QLocale::system().toString(argValue, 'f', precision) - + C_NON_BREAKING_SPACE - + unitString(unit, true); + + QChar::Nbsp + unitString(unit, true); } }