Skip to content

Commit

Permalink
fix user preferred
Browse files Browse the repository at this point in the history
  • Loading branch information
jriegel committed Dec 10, 2013
1 parent 69b4dd0 commit 9efcb39
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 18 deletions.
13 changes: 0 additions & 13 deletions src/Base/Quantity.cpp
Expand Up @@ -130,19 +130,6 @@ QString Quantity::getUserString(double &factor,QString &unitString)const
return Base::UnitsApi::schemaTranslate(*this,factor,unitString);
}

//double Quantity::getUserPrefered(QString &unitString)const
//{
// return Base::UnitsApi::schemaPrefUnit(_Unit,unitString).getValue() * _Value;
//}
//
//std::string Quantity::getUserString(void)const
//{
// std::stringstream sstream;
// sstream << _Value << _Unit.getString();
// //TODO: implementing
// return sstream.str();
//}

/// true if it has a number without a unit
bool Quantity::isDimensionless(void)const
{
Expand Down
3 changes: 0 additions & 3 deletions src/Base/Quantity.h
Expand Up @@ -69,9 +69,6 @@ class BaseExport Quantity
QString dummy2;
return getUserString(dummy1,dummy2);
}
//double getUserPrefered() const { QString dummy; return getUserPrefered(dummy); }
//double getUserPrefered(QString &unitString) const;
//std::string getUserString(void)const;

static Quantity parse(const QString &string);

Expand Down
2 changes: 1 addition & 1 deletion src/Base/QuantityPy.xml
Expand Up @@ -34,7 +34,7 @@ Quantity(string) -- arbitrary mixture of numbers and chars defining a Quantity
</UserDocu>
</Documentation>
</Methode>
<Methode Name="getUserPrefered">
<Methode Name="getUserPreferred">
<Documentation>
<UserDocu>
returns a quantity with the translation factor and a string with the prevered unit
Expand Down
2 changes: 1 addition & 1 deletion src/Base/QuantityPyImp.cpp
Expand Up @@ -85,7 +85,7 @@ PyObject* QuantityPy::pow(PyObject * args)
return 0;
}

PyObject* QuantityPy::getUserPrefered(PyObject *args)
PyObject* QuantityPy::getUserPreferred(PyObject *args)
{
QString uus;
double factor;
Expand Down

0 comments on commit 9efcb39

Please sign in to comment.