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 b4787c1ee1
commit 59760c723f
24 changed files with 117 additions and 120 deletions

View File

@@ -213,7 +213,7 @@ PyObject* UnitPy::richCompare(PyObject *v, PyObject *w, int op)
Py::String UnitPy::getType() const
{
return Py::String(getUnitPtr()->getTypeString().toUtf8(),"utf-8");
return {getUnitPtr()->getTypeString().toUtf8(),"utf-8"};
}
Py::Tuple UnitPy::getSignature() const