diff options
author | Michael Stahl <mstahl@redhat.com> | 2015-03-11 16:14:47 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2015-03-11 16:50:00 +0100 |
commit | 765f6211b1371c1e40de386e715de6b3d1a8df86 (patch) | |
tree | 0d0a8d92097a628ac72316593db9561c23948685 /include/editeng | |
parent | 0bd20a26686d01efea4c64c1f4aac53ae1c142aa (diff) |
utl::ConfigItem::Commit() should call ClearModified()
Rename the virtual function, and add a new non-virtual Commit() to do
that.
Change-Id: I09421df781ba965d6ff638b46cd8214fb3a00022
Diffstat (limited to 'include/editeng')
-rw-r--r-- | include/editeng/acorrcfg.hxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/editeng/acorrcfg.hxx b/include/editeng/acorrcfg.hxx index 14e2b69d808d..b0ecbc1b1be0 100644 --- a/include/editeng/acorrcfg.hxx +++ b/include/editeng/acorrcfg.hxx @@ -26,30 +26,34 @@ class SvxAutoCorrect; class SvxAutoCorrCfg; class EDITENG_DLLPUBLIC SvxBaseAutoCorrCfg : public utl::ConfigItem { +private: SvxAutoCorrCfg& rParent; com::sun::star::uno::Sequence<OUString> GetPropertyNames(); + virtual void ImplCommit() SAL_OVERRIDE; + public: SvxBaseAutoCorrCfg(SvxAutoCorrCfg& rParent); virtual ~SvxBaseAutoCorrCfg(); void Load(bool bInit); - virtual void Commit() SAL_OVERRIDE; virtual void Notify( const com::sun::star::uno::Sequence<OUString>& aPropertyNames) SAL_OVERRIDE; void SetModified() {ConfigItem::SetModified();} }; class EDITENG_DLLPUBLIC SvxSwAutoCorrCfg : public utl::ConfigItem { +private: SvxAutoCorrCfg& rParent; com::sun::star::uno::Sequence<OUString> GetPropertyNames(); + virtual void ImplCommit() SAL_OVERRIDE; + public: SvxSwAutoCorrCfg(SvxAutoCorrCfg& rParent); virtual ~SvxSwAutoCorrCfg(); void Load(bool bInit); - virtual void Commit() SAL_OVERRIDE; virtual void Notify( const com::sun::star::uno::Sequence<OUString>& aPropertyNames) SAL_OVERRIDE; void SetModified() {ConfigItem::SetModified();} }; |