From 8d5a2116bc198f51ee394ca48c48f04ef4ba1658 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 8 Jun 2015 17:04:49 +0100 Subject: add (and call before dtor) Commit to SvtSearchOptions i.e. follow up to commit 465359c35fcd8c30a2bedd3d0beb07c0c1c36cba Author: Michael Stahl Date: Wed Mar 11 16:39:24 2015 +0100 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. to avoid assert in SvtSearchOptions dtor Change-Id: I0eaf93450e1daddb81a9463f2c1df48a334dfb22 --- unotools/source/config/searchopt.cxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'unotools') diff --git a/unotools/source/config/searchopt.cxx b/unotools/source/config/searchopt.cxx index 87dc3e0ab9b4..ed3b6e956ed5 100644 --- a/unotools/source/config/searchopt.cxx +++ b/unotools/source/config/searchopt.cxx @@ -248,6 +248,11 @@ SvtSearchOptions::~SvtSearchOptions() delete pImpl; } +void SvtSearchOptions::Commit() +{ + pImpl->Commit(); +} + sal_Int32 SvtSearchOptions::GetTransliterationFlags() const { sal_Int32 nRes = 0; -- cgit