Gui: Use constant for Type::BadType instead Type::badType()

This commit is contained in:
Benjamin Nauck
2025-02-13 22:10:59 +01:00
parent 04a0d13ec2
commit 029a0555f2

View File

@@ -179,7 +179,7 @@ Base::Type DlgExpressionInput::determineTypeVarSet()
std::string unitTypeString = impliedUnit.getTypeString();
if (unitTypeString.empty()) {
// no type was provided
return Base::Type::badType();
return Base::Type::BadType;
}
std::string typeString = "App::Property" + unitTypeString;