summaryrefslogtreecommitdiff
path: root/sfx2/source/appl/childwin.cxx
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 /sfx2/source/appl/childwin.cxx
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 'sfx2/source/appl/childwin.cxx')
-rw-r--r--sfx2/source/appl/childwin.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/sfx2/source/appl/childwin.cxx b/sfx2/source/appl/childwin.cxx
index 30cafa285d22..eaf7f960a8bb 100644
--- a/sfx2/source/appl/childwin.cxx
+++ b/sfx2/source/appl/childwin.cxx
@@ -48,10 +48,6 @@ SfxChildWinFactory::SfxChildWinFactory( SfxChildWinCtor pTheCtor, sal_uInt16 nID
, nPos(n)
{}
-SfxChildWinFactory::~SfxChildWinFactory()
-{
-}
-
struct SfxChildWindow_Impl
{
css::uno::Reference< css::frame::XFrame > xFrame;
@@ -621,9 +617,9 @@ void SfxChildWindow::SetFrame( const css::uno::Reference< css::frame::XFrame > &
pImpl->xFrame->addEventListener( pImpl->xListener );
}
-void SfxChildWindow::RegisterChildWindow(SfxModule* pMod, std::unique_ptr<SfxChildWinFactory> pFact)
+void SfxChildWindow::RegisterChildWindow(SfxModule* pMod, const SfxChildWinFactory& rFact)
{
- SfxGetpApp()->RegisterChildWindow_Impl( pMod, std::move(pFact) );
+ SfxGetpApp()->RegisterChildWindow_Impl( pMod, rFact );
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */