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 /unotools/source/config/compatibility.cxx | |
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 'unotools/source/config/compatibility.cxx')
-rw-r--r-- | unotools/source/config/compatibility.cxx | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/unotools/source/config/compatibility.cxx b/unotools/source/config/compatibility.cxx index 005b1ee1a686..f91981d1a262 100644 --- a/unotools/source/config/compatibility.cxx +++ b/unotools/source/config/compatibility.cxx @@ -234,16 +234,6 @@ class SvtCompatibilityOptions_Impl : public ConfigItem virtual void Notify( const Sequence< OUString >& lPropertyNames ) SAL_OVERRIDE; - /*-**************************************************************************************************** - @short write changes to configuration - @descr These method writes the changed values into the sub tree - and should always called in our destructor to guarantee consistency of config data. - - @seealso baseclass ConfigItem - *//*-*****************************************************************************************************/ - - virtual void Commit() SAL_OVERRIDE; - // public interface /*-**************************************************************************************************** @@ -284,6 +274,8 @@ class SvtCompatibilityOptions_Impl : public ConfigItem private: + virtual void ImplCommit() SAL_OVERRIDE; + /*-**************************************************************************************************** @short return list of key names of our configuration management which represent one module tree @descr These methods return the current list of key names! We need it to get needed values from our @@ -415,7 +407,7 @@ void SvtCompatibilityOptions_Impl::Notify( const Sequence< OUString >& ) // public method -void SvtCompatibilityOptions_Impl::Commit() +void SvtCompatibilityOptions_Impl::ImplCommit() { // Write all properties! // Delete complete set first. |