summaryrefslogtreecommitdiff
path: root/svx/source/dialog/linkwarn.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-03-19 15:43:36 +0000
committerCaolán McNamara <caolanm@redhat.com>2018-03-19 21:53:06 +0100
commit7df7545fc9ac4aa55403998b2d65e1b147a9f037 (patch)
treedfb7d9671ea79e9995501417fd585df413d0a916 /svx/source/dialog/linkwarn.cxx
parentafe4dfe1d60b81ff673f0859c8c79c19ef26356c (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 'svx/source/dialog/linkwarn.cxx')
-rw-r--r--svx/source/dialog/linkwarn.cxx16
1 files changed, 11 insertions, 5 deletions
diff --git a/svx/source/dialog/linkwarn.cxx b/svx/source/dialog/linkwarn.cxx
index 2dcf5be18747..8d7c23d08e20 100644
--- a/svx/source/dialog/linkwarn.cxx
+++ b/svx/source/dialog/linkwarn.cxx
@@ -42,11 +42,17 @@ SvxLinkWarningDialog::SvxLinkWarningDialog(weld::Widget* pParent, const OUString
SvxLinkWarningDialog::~SvxLinkWarningDialog()
{
- // save value of "warning off" checkbox, if necessary
- SvtMiscOptions aMiscOpt;
- bool bChecked = m_xWarningOnBox->get_active();
- if (aMiscOpt.ShowLinkWarningDialog() != bChecked)
- aMiscOpt.SetShowLinkWarningDialog(bChecked);
+ try
+ {
+ // save value of "warning off" checkbox, if necessary
+ SvtMiscOptions aMiscOpt;
+ bool bChecked = m_xWarningOnBox->get_active();
+ if (aMiscOpt.ShowLinkWarningDialog() != bChecked)
+ aMiscOpt.SetShowLinkWarningDialog(bChecked);
+ }
+ catch (...)
+ {
+ }
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */