Base: Quantity: return std::string
This commit is contained in:
committed by
Yorik van Havre
parent
9f7218ac75
commit
0b3adee2ab
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user