summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-08-14 16:20:34 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-08-16 12:09:05 +0200
commit13c78ceb25151b971e28f64d2ab931016eea7408 (patch)
tree1269857b73a80fb2336152d9f989feff52a9d7e3 /sfx2
parent899fbd617b32771bc8c14effc52a7153465adf5d (diff)
pass SfxMedium around by std::unique_ptr
Change-Id: Ibde7b68d9248f80d5304991390a80742265f37b3 Reviewed-on: https://gerrit.libreoffice.org/59031 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/doc/docinsert.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/doc/docinsert.cxx b/sfx2/source/doc/docinsert.cxx
index ca63af89aa8a..012cbcc02651 100644
--- a/sfx2/source/doc/docinsert.cxx
+++ b/sfx2/source/doc/docinsert.cxx
@@ -100,7 +100,7 @@ void DocumentInserter::StartExecuteModal( const Link<sfx2::FileDialogHelper*,voi
m_pFileDlg->StartExecuteModal( LINK( this, DocumentInserter, DialogClosedHdl ) );
}
-SfxMedium* DocumentInserter::CreateMedium(char const*const pFallbackHack)
+std::unique_ptr<SfxMedium> DocumentInserter::CreateMedium(char const*const pFallbackHack)
{
std::unique_ptr<SfxMedium> pMedium;
if (!m_nError && m_pItemSet && !m_pURLList.empty())
@@ -133,7 +133,7 @@ SfxMedium* DocumentInserter::CreateMedium(char const*const pFallbackHack)
pMedium.reset();
}
- return pMedium.release();
+ return pMedium;
}
SfxMediumList* DocumentInserter::CreateMediumList()