diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-06-08 17:04:49 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2015-08-06 12:22:15 +0200 |
commit | d8ceefaf41420b020f4ea594f2dc0adae766af09 (patch) | |
tree | a92739a2c1ff30a2c68c21ccf8fa9fbf2140c547 /unotools | |
parent | 09abb0aaa77db57940e0c2e94ba732e5673d8d76 (diff) |
add (and call before dtor) Commit to SvtSearchOptions
i.e. follow up to
commit 465359c35fcd8c30a2bedd3d0beb07c0c1c36cba
Author: Michael Stahl <mstahl@redhat.com>
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
(cherry picked from commit 8d5a2116bc198f51ee394ca48c48f04ef4ba1658)
Diffstat (limited to 'unotools')
-rw-r--r-- | unotools/source/config/searchopt.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/unotools/source/config/searchopt.cxx b/unotools/source/config/searchopt.cxx index 3c442ab4ad53..97bd3962efb2 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; |