From 029a0555f29e1f8d22ca5641e5d41be3ace5146a Mon Sep 17 00:00:00 2001 From: Benjamin Nauck Date: Thu, 13 Feb 2025 22:10:59 +0100 Subject: [PATCH] Gui: Use constant for Type::BadType instead Type::badType() --- src/Gui/Dialogs/DlgExpressionInput.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Gui/Dialogs/DlgExpressionInput.cpp b/src/Gui/Dialogs/DlgExpressionInput.cpp index 708bf25c2e..0b1116d0c5 100644 --- a/src/Gui/Dialogs/DlgExpressionInput.cpp +++ b/src/Gui/Dialogs/DlgExpressionInput.cpp @@ -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;