summaryrefslogtreecommitdiff
path: root/svtools/source/config/toolpanelopt.cxx
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2015-03-11 16:39:24 +0100
committerMichael Stahl <mstahl@redhat.com>2015-03-11 16:50:03 +0100
commit465359c35fcd8c30a2bedd3d0beb07c0c1c36cba (patch)
tree3959801825b12a5def0a4e6402917a455aa9c6a2 /svtools/source/config/toolpanelopt.cxx
parenta7b9167235d38130aab1af4bed66b6c48d375fc9 (diff)
do not call virtual Commit() from dtors of utl::ConfigItem subclasses
~SvtAppFilterOptions_Impl() demonstrates that this is a bad idea, by not invoking its subclasses' ImplCommit() but its own. Change-Id: Ic675e9cd3be1494c740a4f289be3bdbf0d1a122b
Diffstat (limited to 'svtools/source/config/toolpanelopt.cxx')
-rw-r--r--svtools/source/config/toolpanelopt.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svtools/source/config/toolpanelopt.cxx b/svtools/source/config/toolpanelopt.cxx
index 4934eeb6b545..4ae9153eca11 100644
--- a/svtools/source/config/toolpanelopt.cxx
+++ b/svtools/source/config/toolpanelopt.cxx
@@ -170,7 +170,7 @@ SvtToolPanelOptions_Impl::SvtToolPanelOptions_Impl()
SvtToolPanelOptions_Impl::~SvtToolPanelOptions_Impl()
{
- Commit();
+ assert(!IsModified()); // should have been committed
}
static int lcl_MapPropertyName( const OUString& rCompare,