Base/App: fix warnings from code analysers:

* convert old-style-casts to explicit C++ casts where possible
* make some implicit conversions explicit
This commit is contained in:
wmayer
2022-03-06 23:49:30 +01:00
parent 1be4ed57ae
commit e4435cdcba
30 changed files with 211 additions and 155 deletions

View File

@@ -142,7 +142,7 @@ Type Type::badType()
const Type Type::createType(const Type parent, const char *name, instantiationMethod method)
{
Type newType;
newType.index = Type::typedata.size();
newType.index = static_cast<unsigned int>(Type::typedata.size());
TypeData * typeData = new TypeData(name, newType, parent,method);
Type::typedata.push_back(typeData);
@@ -232,7 +232,7 @@ int Type::getAllDerivedFrom(const Type type, std::vector<Type> & List)
int Type::getNumTypes()
{
return typedata.size();
return static_cast<int>(typedata.size());
}
Type Type::getTypeIfDerivedFrom(const char* name , const Type parent, bool bLoadModule)