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&) {
|
catch (Py::Exception&) {
|
||||||
Base::PyException e;
|
Base::PyException e;
|
||||||
e.ReportException();
|
e.reportException();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -2322,7 +2322,7 @@ PyObject* ApplicationPy::sRegisterEditingOverlay(PyObject* /*self*/, PyObject* a
|
|||||||
}
|
}
|
||||||
catch (Py::Exception&) {
|
catch (Py::Exception&) {
|
||||||
Base::PyException e;
|
Base::PyException e;
|
||||||
e.ReportException();
|
e.reportException();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -29,6 +29,7 @@
|
|||||||
#include <Base/BaseClass.h>
|
#include <Base/BaseClass.h>
|
||||||
#include <Base/Parameter.h>
|
#include <Base/Parameter.h>
|
||||||
#include <Gui/TaskView/TaskWatcher.h>
|
#include <Gui/TaskView/TaskWatcher.h>
|
||||||
|
#include <Gui/ToolBarManager.h>
|
||||||
|
|
||||||
namespace Base
|
namespace Base
|
||||||
{
|
{
|
||||||
@@ -39,7 +40,6 @@ namespace Gui
|
|||||||
{
|
{
|
||||||
|
|
||||||
class MenuItem;
|
class MenuItem;
|
||||||
class ToolBarItem;
|
|
||||||
class DockWindowItems;
|
class DockWindowItems;
|
||||||
class WorkbenchManager;
|
class WorkbenchManager;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user