Base: Units: return std::string
This commit is contained in:
committed by
Yorik van Havre
parent
6b6e1fbd26
commit
0907c7bfda
@@ -174,7 +174,7 @@ Base::Type DlgExpressionInput::determineTypeVarSet()
|
||||
// varset. Since unit properties are derived from App::PropertyFloat, it
|
||||
// allows us to create a property and set the value.
|
||||
|
||||
std::string unitTypeString = impliedUnit.getTypeString().toStdString();
|
||||
std::string unitTypeString = impliedUnit.getTypeString();
|
||||
if (unitTypeString.empty()) {
|
||||
// no type was provided
|
||||
return Base::Type::badType();
|
||||
@@ -187,7 +187,7 @@ Base::Type DlgExpressionInput::determineTypeVarSet()
|
||||
|
||||
bool DlgExpressionInput::typeOkForVarSet()
|
||||
{
|
||||
std::string unitType = impliedUnit.getTypeString().toStdString();
|
||||
std::string unitType = impliedUnit.getTypeString();
|
||||
return determineTypeVarSet() != Base::Type::badType();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user