summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-07-21 14:24:28 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-07-21 20:08:07 +0200
commitec01d43e0a8fa560d7cd8c76c0d609b18a60cddb (patch)
treefe3881f20236327e07cf56a3ba1bd1898c047d93 /sc
parentdf157d5291ba3531d2c79539addfd0dbff48ac67 (diff)
pass SfxChildWinFactory around by value
no need to allocate on heap Change-Id: I7410a6c9cb434b18ed6f7ae1dc0ccea34151921c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119331 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/inc/ChildWindowWrapper.hxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/ui/inc/ChildWindowWrapper.hxx b/sc/source/ui/inc/ChildWindowWrapper.hxx
index 7db2b99c53a4..afc4a2df54c7 100644
--- a/sc/source/ui/inc/ChildWindowWrapper.hxx
+++ b/sc/source/ui/inc/ChildWindowWrapper.hxx
@@ -49,10 +49,10 @@ public:
SfxModule* pModule = nullptr,
SfxChildWindowFlags nFlags = SfxChildWindowFlags::NONE)
{
- auto pFactory = std::make_unique<SfxChildWinFactory>(ChildControllerWrapper::CreateImpl, WindowID, CHILDWIN_NOPOS );
- pFactory->aInfo.nFlags |= nFlags;
- pFactory->aInfo.bVisible = bVisible;
- SfxChildWindow::RegisterChildWindow(pModule, std::move(pFactory));
+ SfxChildWinFactory aFactory(ChildControllerWrapper::CreateImpl, WindowID, CHILDWIN_NOPOS );
+ aFactory.aInfo.nFlags |= nFlags;
+ aFactory.aInfo.bVisible = bVisible;
+ SfxChildWindow::RegisterChildWindow(pModule, aFactory);
}
static sal_uInt16 GetChildWindowId()