App: modernize C++: use default member init

This commit is contained in:
wmayer
2023-08-23 14:13:11 +02:00
committed by wwmayer
parent 4fb07bcfd6
commit ee0fad4c90
39 changed files with 96 additions and 160 deletions

View File

@@ -471,11 +471,11 @@ PyObject* DocumentObjectPy::getSubObject(PyObject *args, PyObject *keywds)
bool transform = Base::asBoolean(doTransform);
struct SubInfo {
App::DocumentObject *sobj;
App::DocumentObject *sobj{nullptr};
Py::Object obj;
Py::Object pyObj;
Base::Matrix4D mat;
explicit SubInfo(const Base::Matrix4D &mat) : sobj(nullptr), mat(mat){}
explicit SubInfo(const Base::Matrix4D &mat) : mat(mat){}
};
Base::Matrix4D mat;