summaryrefslogtreecommitdiff
path: root/sw/source/uibase/dbui/dbmgr.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-01-24 13:21:55 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-01-24 20:40:37 +0100
commit9b8013b20d20a3946146d5287e8d8f8b9ddf694d (patch)
tree7bcfb26045aad3dc0f54dfaba4cd08d619a12a47 /sw/source/uibase/dbui/dbmgr.cxx
parent3bbc0cf67cd5aa0ec5a1997794d21a87830bc618 (diff)
loplugin:makeshared in sw
Change-Id: I6b297b84edda441c4ec6ea9f89ed553a50783bf5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87356 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/uibase/dbui/dbmgr.cxx')
-rw-r--r--sw/source/uibase/dbui/dbmgr.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/dbui/dbmgr.cxx b/sw/source/uibase/dbui/dbmgr.cxx
index 1365e32b5aae..0fd0ffc46cf5 100644
--- a/sw/source/uibase/dbui/dbmgr.cxx
+++ b/sw/source/uibase/dbui/dbmgr.cxx
@@ -1225,10 +1225,10 @@ bool SwDBManager::MergeMailFiles(SwWrtShell* pSourceShell,
// construct the process dialog
pSourceWindow = &pSourceShell->GetView().GetEditWin();
if (!bMT_PRINTER)
- xProgressDlg.reset(new CreateMonitor(pSourceWindow->GetFrameWeld()));
+ xProgressDlg = std::make_shared<CreateMonitor>(pSourceWindow->GetFrameWeld());
else
{
- xProgressDlg.reset(new PrintMonitor(pSourceWindow->GetFrameWeld()));
+ xProgressDlg = std::make_shared<PrintMonitor>(pSourceWindow->GetFrameWeld());
static_cast<PrintMonitor*>(xProgressDlg.get())->set_title(
pSourceDocSh->GetTitle(22));
}