use const reference in schemaTranslate to avoid tmp. copy

This commit is contained in:
wmayer
2016-08-05 10:33:41 +02:00
parent 1783528282
commit 787cfc660d
9 changed files with 13 additions and 14 deletions

View File

@@ -36,7 +36,7 @@
using namespace Base;
QString UnitsSchemaMKS::schemaTranslate(Base::Quantity quant,double &factor,QString &unitString)
QString UnitsSchemaMKS::schemaTranslate(const Quantity &quant, double &factor, QString &unitString)
{
double UnitValue = std::abs(quant.getValue());
Unit unit = quant.getUnit();