All: Reformat according to new standard

This commit is contained in:
pre-commit-ci[bot]
2025-11-11 13:49:01 +01:00
committed by Kacper Donat
parent eafd18dac0
commit 25c3ba7338
2390 changed files with 154630 additions and 115818 deletions

View File

@@ -62,8 +62,7 @@ int PathPy::PyInit(PyObject* args, PyObject* /*kwd*/)
Py::List list(pcObj);
for (Py::List::iterator it = list.begin(); it != list.end(); ++it) {
if (PyObject_TypeCheck((*it).ptr(), &(Path::CommandPy::Type))) {
Path::Command& cmd =
*static_cast<Path::CommandPy*>((*it).ptr())->getCommandPtr();
Path::Command& cmd = *static_cast<Path::CommandPy*>((*it).ptr())->getCommandPtr();
getToolpathPtr()->addCommand(cmd);
}
else {
@@ -91,7 +90,8 @@ Py::List PathPy::getCommands() const
Py::List list;
for (unsigned int i = 0; i < getToolpathPtr()->getSize(); i++) {
list.append(
Py::asObject(new Path::CommandPy(new Path::Command(getToolpathPtr()->getCommand(i)))));
Py::asObject(new Path::CommandPy(new Path::Command(getToolpathPtr()->getCommand(i))))
);
}
return list;
}