add class QuantityFormat to control user string of Quantity

do some code refactoration to reduce duplicate code
This commit is contained in:
wmayer
2016-08-06 19:06:29 +02:00
parent 4d8b05e401
commit 61b62ee314
10 changed files with 271 additions and 234 deletions

View File

@@ -116,9 +116,9 @@ void UnitsApi::setSchema(UnitSystem s)
// === static translation methodes ==========================================
QString UnitsApi::schemaTranslate(Base::Quantity quant,double &factor,QString &unitString)
QString UnitsApi::schemaTranslate(const Base::Quantity& quant, double &factor, QString &unitString)
{
return UserPrefSystem->schemaTranslate(quant,factor,unitString);
return UserPrefSystem->schemaTranslate(quant,factor,unitString);
}