summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-03-09 20:15:28 +0000
committerSzymon Kłos <szymon.klos@collabora.com>2021-05-25 12:12:25 +0200
commit38c511a368a1b6b1cc3a01d0baa63c6c044734db (patch)
treee5104b980034a5c8b7b9a1331d72b64fb2e131ea /sfx2
parent2fc3b9e6652da307aa712936046a41c43008cda3 (diff)
rename SfxChildWindowContext::GetFloatingWindow to what it does
Change-Id: I0a8e1be2c64d054e6af1e9826f993d3b219e854b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112245 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/appl/childwin.cxx8
1 files changed, 4 insertions, 4 deletions
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<DockingWindow*>(pParent)->GetFloatingWindow();
+ return true;
}
if (pParent->GetType() == WindowType::FLOATINGWINDOW)
{
- return static_cast<FloatingWindow*>(pParent);
+ return true;
}
- return nullptr;
+ return false;
}
void SfxChildWindow::SetFactory_Impl( SfxChildWinFactory *pF )