Base: Quantity: return std::string

This commit is contained in:
Ladislav Michl
2024-12-23 17:48:42 +01:00
committed by Yorik van Havre
parent c11b37e312
commit 2ea8a633ac
58 changed files with 573 additions and 592 deletions
+1 -1
View File
@@ -128,7 +128,7 @@ Unit::Unit() //NOLINT
Unit::Unit(const std::string& expr) // NOLINT
{
try {
*this = Quantity::parse(QString::fromStdString(expr)).getUnit();
*this = Quantity::parse(expr).getUnit();
}
catch (const Base::ParserError&) {
Val = 0;