From 38c511a368a1b6b1cc3a01d0baa63c6c044734db Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 9 Mar 2021 20:15:28 +0000 Subject: rename SfxChildWindowContext::GetFloatingWindow to what it does MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I0a8e1be2c64d054e6af1e9826f993d3b219e854b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112245 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- sfx2/source/appl/childwin.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sfx2') diff --git a/sfx2/source/appl/childwin.cxx b/sfx2/source/appl/childwin.cxx index 4a70d0c8592f..430593a88ab9 100644 --- a/sfx2/source/appl/childwin.cxx +++ b/sfx2/source/appl/childwin.cxx @@ -529,17 +529,17 @@ SfxChildWindowContext::~SfxChildWindowContext() pWindow.disposeAndClear(); } -FloatingWindow* SfxChildWindowContext::GetFloatingWindow(vcl::Window *pParent) +bool ParentIsFloatingWindow(vcl::Window *pParent) { if (pParent->GetType() == WindowType::DOCKINGWINDOW || pParent->GetType() == WindowType::TOOLBOX) { - return static_cast(pParent)->GetFloatingWindow(); + return true; } if (pParent->GetType() == WindowType::FLOATINGWINDOW) { - return static_cast(pParent); + return true; } - return nullptr; + return false; } void SfxChildWindow::SetFactory_Impl( SfxChildWinFactory *pF ) -- cgit