diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-02-10 09:57:59 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-02-10 13:01:43 +0100 |
commit | 97f8d4dd1201dedf5640fb0070b4df8359260a0d (patch) | |
tree | 98987233745298bf274bc0c38543785853947c07 /sw | |
parent | 4cae353cae28f6530544ad5864d4ce3075ac5bcc (diff) |
cid#1401334 silence Uncaught exception
Change-Id: Ie8425ea3d528811fbb27d0e793c6ebed5a65ac68
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110695
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/filter/basflt/shellio.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/filter/basflt/shellio.cxx b/sw/source/filter/basflt/shellio.cxx index 88e6d04459cd..272e36a8ec6c 100644 --- a/sw/source/filter/basflt/shellio.cxx +++ b/sw/source/filter/basflt/shellio.cxx @@ -29,6 +29,7 @@ #include <editeng/ulspitem.hxx> #include <editeng/boxitem.hxx> #include <editeng/paperinf.hxx> +#include <o3tl/deleter.hxx> #include <node.hxx> #include <docary.hxx> #include <fmtanchr.hxx> @@ -851,7 +852,7 @@ ErrCode SwWriter::Write( WriterRef const & rxWriter, const OUString* pRealFileNa pESh->StartAllAction(); } - auto xGuard = std::make_unique<PurgeGuard>(*pOutDoc); + std::unique_ptr<PurgeGuard, o3tl::default_delete<PurgeGuard>> xGuard(new PurgeGuard(*pOutDoc)); pOutDoc->SetInWriting(true); ErrCode nError = ERRCODE_NONE; |