fix: resolve build errors — ToolBarItem incomplete type and ReportException method name
Some checks failed
Build and Test / build (pull_request) Has been cancelled
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:
@@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
@@ -29,6 +29,7 @@
|
||||
#include <Base/BaseClass.h>
|
||||
#include <Base/Parameter.h>
|
||||
#include <Gui/TaskView/TaskWatcher.h>
|
||||
#include <Gui/ToolBarManager.h>
|
||||
|
||||
namespace Base
|
||||
{
|
||||
@@ -39,7 +40,6 @@ namespace Gui
|
||||
{
|
||||
|
||||
class MenuItem;
|
||||
class ToolBarItem;
|
||||
class DockWindowItems;
|
||||
class WorkbenchManager;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user