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

This commit is contained in:
Benjamin Nauck
2025-02-13 22:10:53 +01:00
parent 27222321c6
commit e840c840c0
4 changed files with 7 additions and 7 deletions

View File

@@ -363,7 +363,7 @@ Base::Type ProjectFile::getTypeId(const std::string& name) const
// <Object type="Mesh::MeshFeature" name="Mesh" />
// <Objects/>
if (!xmlDocument) {
return Base::Type::badType();
return Base::Type::BadType;
}
DOMNodeList* nodes = xmlDocument->getElementsByTagName(XStrLiteral("Objects").unicodeForm());
@@ -388,7 +388,7 @@ Base::Type ProjectFile::getTypeId(const std::string& name) const
}
}
return Base::Type::badType();
return Base::Type::BadType;
}
std::list<ProjectFile::PropertyFile> ProjectFile::getPropertyFiles(const std::string& name) const