diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-07-26 13:51:09 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-07-26 19:28:45 +0200 |
commit | 8c48dd5ac555e37a1ee50f70edcb678d723e62f4 (patch) | |
tree | 3083b10af279ccd7f7373a838afba7938ce9ea00 /unotools | |
parent | 682df20a542e5d113eaa3111db5ff28026987861 (diff) |
cid#1485150 silence Uncaught exception
Change-Id: I123efe9921716dda386d78bdbcf22f9299732b9e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119505
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'unotools')
-rw-r--r-- | unotools/source/config/configitem.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/unotools/source/config/configitem.cxx b/unotools/source/config/configitem.cxx index bb77ac3d40b1..152730cec0b1 100644 --- a/unotools/source/config/configitem.cxx +++ b/unotools/source/config/configitem.cxx @@ -34,6 +34,7 @@ #include <com/sun/star/beans/PropertyValue.hpp> #include <com/sun/star/beans/PropertyAttribute.hpp> #include <com/sun/star/util/XChangesBatch.hpp> +#include <o3tl/deleter.hxx> #include <osl/diagnose.h> #include <comphelper/sequence.hxx> #include <comphelper/solarmutex.hxx> @@ -155,7 +156,7 @@ ConfigItem::ConfigItem(const OUString &rSubTree, ConfigItemMode nSetMode ) : ConfigItem::~ConfigItem() { - RemoveChangesListener(); + suppress_fun_call_w_exception(RemoveChangesListener()); ConfigManager::getConfigManager().removeConfigItem(*this); } |