From e859bf8c4da78698b820d13af1a2fdee3602f5b4 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 5 May 2021 14:20:11 +0200 Subject: loplugin:constmethod Change-Id: I7913fd8144d521b8293ac43036d0fad82e457cd1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115145 Tested-by: Jenkins Reviewed-by: Noel Grandin --- svx/source/form/fmvwimp.cxx | 2 +- svx/source/inc/fmvwimp.hxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'svx') 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 FmXFormView::GetParentWindow() +Reference FmXFormView::GetParentWindow() const { const vcl::Window* pCurrentWindow = m_pView ? dynamic_cast(m_pView->GetActualOutDev()) : nullptr; return VCLUnoHelper::GetInterface(const_cast(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 GetParentWindow(); + css::uno::Reference GetParentWindow() const; protected: FmXFormView( FmFormView* _pView ); -- cgit