Base: Use pass by value instead of reference as size is small

This commit is contained in:
Benjamin Nauck
2025-02-13 20:26:50 +01:00
parent 15c8ab5b4f
commit e7ea25bea2
2 changed files with 10 additions and 13 deletions

View File

@@ -101,17 +101,17 @@ public:
static Type fromKey(unsigned int key);
const char* getName() const;
Type getParent() const;
bool isDerivedFrom(const Type& type) const;
bool isDerivedFrom(const Type type) const;
static int getAllDerivedFrom(const Type& type, std::vector<Type>& List);
static int getAllDerivedFrom(const Type type, std::vector<Type>& List);
/// Returns the given named type if is derived from parent type, otherwise return bad type
static Type
getTypeIfDerivedFrom(const char* name, const Type& parent, bool bLoadModule = false);
getTypeIfDerivedFrom(const char* name, const Type parent, bool loadModule = false);
static int getNumTypes();
static Type
createType(const Type& parent, const char* name, instantiationMethod method = nullptr);
createType(const Type parent, const char* name, instantiationMethod method = nullptr);
unsigned int getKey() const;
bool isBad() const;