Base: modernize C++: return braced init list

This commit is contained in:
wmayer
2023-08-17 13:14:46 +02:00
committed by wwmayer
parent 2636e164f3
commit 2bc90e6090
24 changed files with 117 additions and 120 deletions

View File

@@ -245,7 +245,7 @@ PyObject* TypePy::createInstanceByName (PyObject *args)
Py::String TypePy::getName() const
{
return Py::String(std::string(getBaseTypePtr()->getName()));
return {std::string(getBaseTypePtr()->getName())};
}
Py::Long TypePy::getKey() const
@@ -263,7 +263,7 @@ Py::String TypePy::getModule() const
else
module.clear();
return Py::String(module);
return {module};
}
PyObject *TypePy::getCustomAttributes(const char* /*attr*/) const