kunitconversion: avoid temporary in KUnitConversion::Currency::convert()

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2021-07-08 20:46:52 +03:00
parent 9d785124c6
commit 63ed5b9f3c

View file

@ -589,6 +589,5 @@ Value Currency::convert(const Value& value, UnitPtr to)
}
}
}
Value v = UnitCategory::convert(value, to);
return v;
return UnitCategory::convert(value, to);
}