fix: resolve build errors — ToolBarItem incomplete type and ReportException method name
Some checks failed
Build and Test / build (pull_request) Has been cancelled

- Workbench.h: replace forward declaration of ToolBarItem with #include <Gui/ToolBarManager.h>
  so that ToolBarItem::DefaultVisibility can be used as a default parameter (line 283)
- ApplicationPy.cpp: fix ReportException() → reportException() to match
  the method name declared in Base::Interpreter.h
This commit is contained in:
forbes
2026-02-11 16:35:40 -06:00
parent 056c8fe129
commit 1f49e3fa6d
2 changed files with 3 additions and 3 deletions

View File

@@ -2271,7 +2271,7 @@ PyObject* ApplicationPy::sRegisterEditingContext(PyObject* /*self*/, PyObject* a
}
catch (Py::Exception&) {
Base::PyException e;
e.ReportException();
e.reportException();
return false;
}
};
@@ -2322,7 +2322,7 @@ PyObject* ApplicationPy::sRegisterEditingOverlay(PyObject* /*self*/, PyObject* a
}
catch (Py::Exception&) {
Base::PyException e;
e.ReportException();
e.reportException();
return false;
}
};