diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-05-05 14:20:11 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-05-05 18:50:51 +0200 |
commit | e859bf8c4da78698b820d13af1a2fdee3602f5b4 (patch) | |
tree | b2ead4e992f283c2e1dfcdabfa99f013f1506918 /svx | |
parent | ae1d21ae69b0522cbbe67abeb2f5c5ba7ca2c33b (diff) |
loplugin:constmethod
Change-Id: I7913fd8144d521b8293ac43036d0fad82e457cd1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115145
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/form/fmvwimp.cxx | 2 | ||||
-rw-r--r-- | svx/source/inc/fmvwimp.hxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/form/fmvwimp.cxx b/svx/source/form/fmvwimp.cxx index c9e2af6a4ce2..5bcb4ecb49d6 100644 --- a/svx/source/form/fmvwimp.cxx +++ b/svx/source/form/fmvwimp.cxx @@ -1010,7 +1010,7 @@ void FmXFormView::breakCreateFormObject() m_xLastCreatedControlModel.clear(); } -Reference<XWindow> FmXFormView::GetParentWindow() +Reference<XWindow> FmXFormView::GetParentWindow() const { const vcl::Window* pCurrentWindow = m_pView ? dynamic_cast<const vcl::Window*>(m_pView->GetActualOutDev()) : nullptr; return VCLUnoHelper::GetInterface(const_cast<vcl::Window*>(pCurrentWindow)); diff --git a/svx/source/inc/fmvwimp.hxx b/svx/source/inc/fmvwimp.hxx index 62291ad8b195..dc56630c6ef3 100644 --- a/svx/source/inc/fmvwimp.hxx +++ b/svx/source/inc/fmvwimp.hxx @@ -172,7 +172,7 @@ class FmXFormView : public ::cppu::WeakImplHelper< FmFormShell* GetFormShell() const; - css::uno::Reference<css::awt::XWindow> GetParentWindow(); + css::uno::Reference<css::awt::XWindow> GetParentWindow() const; protected: FmXFormView( FmFormView* _pView ); |