summaryrefslogtreecommitdiff
path: root/sw/source/ui
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2024-12-20 10:51:15 +0100
committerMike Kaganski <mike.kaganski@collabora.com>2024-12-20 12:04:23 +0100
commit37c922d633a594b787b5f0ad6e33293bc5062b1c (patch)
treebc7ec0d60c9810c3de4bb0ff429f47f323ac4eca /sw/source/ui
parent519282418137861144341da8b7a5759068104405 (diff)
Revert "coverity#1430065 silence Uncaught exception"
This reverts commit 16d5cbfd38e57a6fccfda018ede2de7e4c448221. Reason for revert: The reverted commit was likely wrong, and was immediately obsoleted by commit 7df7545fc9ac4aa55403998b2d65e1b147a9f037 (coverity#1430074 Uncaught exception, 2018-03-19), where the dtor of SwAutoFormatDlg got a try...catch block. The actual lines changed in the original commit were later modified in commit c91faacfb7dd26fe7b7c93c7af5d4c330779a59f (make auto-format dialog async, 2024-01-31), and this commit removes the use of o3tl::default_delete, appeared in those subsequent changes. Change-Id: Ibd634187d2930f3cc158aa0c36981ca8b327db91 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178876 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sw/source/ui')
-rw-r--r--sw/source/ui/dialog/swdlgfact.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/ui/dialog/swdlgfact.cxx b/sw/source/ui/dialog/swdlgfact.cxx
index 4ed228a58633..086c7f4fd451 100644
--- a/sw/source/ui/dialog/swdlgfact.cxx
+++ b/sw/source/ui/dialog/swdlgfact.cxx
@@ -1209,8 +1209,7 @@ VclPtr<AbstractSwAutoFormatDlg> SwAbstractDialogFactory_Impl::CreateSwAutoFormat
SwWrtShell* pShell, bool bSetAutoFormat, const SwTableAutoFormat* pSelFormat)
{
return VclPtr<AbstractSwAutoFormatDlg_Impl>::Create(
- std::unique_ptr<SwAutoFormatDlg, o3tl::default_delete<SwAutoFormatDlg>>(
- new SwAutoFormatDlg(pParent, pShell, bSetAutoFormat, pSelFormat)));
+ std::make_shared<SwAutoFormatDlg>(pParent, pShell, bSetAutoFormat, pSelFormat));
}
VclPtr<SfxAbstractDialog> SwAbstractDialogFactory_Impl::CreateSwBorderDlg(weld::Window* pParent, SfxItemSet& rSet, SwBorderModes nType )