diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-03-19 15:43:36 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-03-19 21:53:06 +0100 |
commit | 7df7545fc9ac4aa55403998b2d65e1b147a9f037 (patch) | |
tree | dfb7d9671ea79e9995501417fd585df413d0a916 /sfx2/source | |
parent | afe4dfe1d60b81ff673f0859c8c79c19ef26356c (diff) |
coverity#1430074 Uncaught exception
and
coverity#1430066 Uncaught exception
coverity#1430095 Uncaught exception
Change-Id: Idca2e12d3911e3ea768a2a9fb8e7f3b03a2c887f
Reviewed-on: https://gerrit.libreoffice.org/51567
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sfx2/source')
-rw-r--r-- | sfx2/source/dialog/alienwarn.cxx | 16 |
1 files changed, 11 insertions, 5 deletions
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: */ |