diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-08-14 16:20:34 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-08-16 12:09:05 +0200 |
commit | 13c78ceb25151b971e28f64d2ab931016eea7408 (patch) | |
tree | 1269857b73a80fb2336152d9f989feff52a9d7e3 /sc/source/ui/miscdlgs/instbdlg.cxx | |
parent | 899fbd617b32771bc8c14effc52a7153465adf5d (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 'sc/source/ui/miscdlgs/instbdlg.cxx')
-rw-r--r-- | sc/source/ui/miscdlgs/instbdlg.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/miscdlgs/instbdlg.cxx b/sc/source/ui/miscdlgs/instbdlg.cxx index 1c27d79e9398..381722983bab 100644 --- a/sc/source/ui/miscdlgs/instbdlg.cxx +++ b/sc/source/ui/miscdlgs/instbdlg.cxx @@ -305,7 +305,7 @@ IMPL_LINK( ScInsertTableDlg, DialogClosedHdl, sfx2::FileDialogHelper*, _pFileDlg { if ( ERRCODE_NONE == _pFileDlg->GetError() ) { - SfxMedium* pMed = pDocInserter->CreateMedium(); + std::unique_ptr<SfxMedium> pMed = pDocInserter->CreateMedium(); if ( pMed ) { // ERRCTX_SFX_OPENDOC -> "Error loading document" @@ -321,7 +321,7 @@ IMPL_LINK( ScInsertTableDlg, DialogClosedHdl, sfx2::FileDialogHelper*, _pFileDlg { weld::WaitObject aWait(m_xDialog.get()); - pDocShTables->DoLoad(pMed); + pDocShTables->DoLoad(pMed.release()); } ErrCode nErr = pDocShTables->GetErrorCode(); |