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

@@ -604,7 +604,7 @@ void QuantityPy::setUnit(Py::Object arg)
Py::String QuantityPy::getUserString() const
{
return Py::String(getQuantityPtr()->getUserString().toUtf8(),"utf-8");
return {getQuantityPtr()->getUserString().toUtf8(),"utf-8"};
}
Py::Dict QuantityPy::getFormat() const