fix readability-avoid-const-params-in-decls

This commit is contained in:
wmayer
2023-11-14 20:24:51 +01:00
parent 9c7d00ffcb
commit 0633129b83
5 changed files with 31 additions and 31 deletions

View File

@@ -119,7 +119,7 @@ Type Type::badType()
}
const Type Type::createType(const Type parent, const char* name, instantiationMethod method)
const Type Type::createType(const Type& parent, const char* name, instantiationMethod method)
{
Type newType;
newType.index = static_cast<unsigned int>(Type::typedata.size());
@@ -185,7 +185,7 @@ const Type Type::getParent() const
return typedata[index]->parent;
}
bool Type::isDerivedFrom(const Type type) const
bool Type::isDerivedFrom(const Type& type) const
{
Type temp(*this);
@@ -199,7 +199,7 @@ bool Type::isDerivedFrom(const Type type) const
return false;
}
int Type::getAllDerivedFrom(const Type type, std::vector<Type>& List)
int Type::getAllDerivedFrom(const Type& type, std::vector<Type>& List)
{
int cnt = 0;
@@ -217,7 +217,7 @@ int Type::getNumTypes()
return static_cast<int>(typedata.size());
}
Type Type::getTypeIfDerivedFrom(const char* name, const Type parent, bool bLoadModule)
Type Type::getTypeIfDerivedFrom(const char* name, const Type& parent, bool bLoadModule)
{
if (bLoadModule) {
importModule(name);