summaryrefslogtreecommitdiff
path: root/svtools/source/config/menuoptions.cxx
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2015-03-11 16:14:47 +0100
committerMichael Stahl <mstahl@redhat.com>2015-03-11 16:50:00 +0100
commit765f6211b1371c1e40de386e715de6b3d1a8df86 (patch)
tree0d0a8d92097a628ac72316593db9561c23948685 /svtools/source/config/menuoptions.cxx
parent0bd20a26686d01efea4c64c1f4aac53ae1c142aa (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 'svtools/source/config/menuoptions.cxx')
-rw-r--r--svtools/source/config/menuoptions.cxx15
1 files changed, 3 insertions, 12 deletions
diff --git a/svtools/source/config/menuoptions.cxx b/svtools/source/config/menuoptions.cxx
index a295fc46ea42..60d931a6f31e 100644
--- a/svtools/source/config/menuoptions.cxx
+++ b/svtools/source/config/menuoptions.cxx
@@ -107,17 +107,6 @@ class SvtMenuOptions_Impl : public ConfigItem
virtual void Notify( const Sequence< OUString >& seqPropertyNames ) 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
@@ -148,6 +137,8 @@ class SvtMenuOptions_Impl : public ConfigItem
private:
+ virtual void ImplCommit() SAL_OVERRIDE;
+
/*-****************************************************************************************************
@short return list of fix key names of our configuration management which represent our module tree
@descr These methods return a static const list of key names. We need it to get needed values from our
@@ -306,7 +297,7 @@ void SvtMenuOptions_Impl::Notify( const Sequence< OUString >& seqPropertyNames )
// public method
-void SvtMenuOptions_Impl::Commit()
+void SvtMenuOptions_Impl::ImplCommit()
{
// Get names of supported properties, create a list for values and copy current values to it.
Sequence< OUString > seqNames = impl_GetPropertyNames();