From 7df7545fc9ac4aa55403998b2d65e1b147a9f037 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 19 Mar 2018 15:43:36 +0000 Subject: coverity#1430074 Uncaught exception MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit and coverity#1430066 Uncaught exception coverity#1430095 Uncaught exception Change-Id: Idca2e12d3911e3ea768a2a9fb8e7f3b03a2c887f Reviewed-on: https://gerrit.libreoffice.org/51567 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- sfx2/source/dialog/alienwarn.cxx | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'sfx2/source') diff --git a/sfx2/source/dialog/alienwarn.cxx b/sfx2/source/dialog/alienwarn.cxx index d5b45ba091a6..d3ffe5c13c8d 100644 --- a/sfx2/source/dialog/alienwarn.cxx +++ b/sfx2/source/dialog/alienwarn.cxx @@ -63,11 +63,17 @@ SfxAlienWarningDialog::SfxAlienWarningDialog(weld::Window* pParent, const OUStri SfxAlienWarningDialog::~SfxAlienWarningDialog() { - // save value of "warning off" checkbox, if necessary - SvtSaveOptions aSaveOpt; - bool bChecked = m_xWarningOnBox->get_active(); - if (aSaveOpt.IsWarnAlienFormat() != bChecked) - aSaveOpt.SetWarnAlienFormat(bChecked); + try + { + // save value of "warning off" checkbox, if necessary + SvtSaveOptions aSaveOpt; + bool bChecked = m_xWarningOnBox->get_active(); + if (aSaveOpt.IsWarnAlienFormat() != bChecked) + aSaveOpt.SetWarnAlienFormat(bChecked); + } + catch (...) + { + } } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit