declare getMDIView and getMDIViewPage as const

This commit is contained in:
wmayer
2019-12-29 13:55:39 +01:00
parent 6a4dd82415
commit e900384250
13 changed files with 28 additions and 20 deletions

View File

@@ -123,7 +123,8 @@ TechDraw::DrawHatch* ViewProviderHatch::getViewObject() const
return dynamic_cast<TechDraw::DrawHatch*>(pcObject);
}
Gui::MDIView *ViewProviderHatch::getMDIView() {
Gui::MDIView *ViewProviderHatch::getMDIView() const
{
auto obj = getViewObject();
if(!obj) return 0;
auto vp = Gui::Application::Instance->getViewProvider(obj->getSourceView());