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 26ece78df4
commit 4a343ab31e
30 changed files with 211 additions and 155 deletions

View File

@@ -140,7 +140,7 @@ PyObject* UnitsApi::sSetSchema(PyObject * /*self*/, PyObject *args)
PyErr_SetString(PyExc_ValueError, "invalid schema value");
return nullptr;
}
setSchema((UnitSystem)index);
setSchema(static_cast<UnitSystem>(index));
}
Py_Return;
}