summaryrefslogtreecommitdiff
path: root/chart2/source
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 /chart2/source
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 'chart2/source')
-rw-r--r--chart2/source/controller/main/ConfigurationAccess.cxx6
-rw-r--r--chart2/source/tools/ConfigColorScheme.cxx4
2 files changed, 6 insertions, 4 deletions
diff --git a/chart2/source/controller/main/ConfigurationAccess.cxx b/chart2/source/controller/main/ConfigurationAccess.cxx
index 50f638a31358..4427b3fa105b 100644
--- a/chart2/source/controller/main/ConfigurationAccess.cxx
+++ b/chart2/source/controller/main/ConfigurationAccess.cxx
@@ -42,12 +42,14 @@ bool lcl_IsMetric()
class CalcConfigItem : public ::utl::ConfigItem
{
+private:
+ virtual void ImplCommit() SAL_OVERRIDE;
+
public:
CalcConfigItem();
virtual ~CalcConfigItem();
FieldUnit getFieldUnit();
- virtual void Commit() SAL_OVERRIDE;
virtual void Notify( const uno::Sequence<OUString>& aPropertyNames) SAL_OVERRIDE;
};
@@ -60,7 +62,7 @@ CalcConfigItem::~CalcConfigItem()
{
}
-void CalcConfigItem::Commit() {}
+void CalcConfigItem::ImplCommit() {}
void CalcConfigItem::Notify( const uno::Sequence<OUString>& ) {}
FieldUnit CalcConfigItem::getFieldUnit()
diff --git a/chart2/source/tools/ConfigColorScheme.cxx b/chart2/source/tools/ConfigColorScheme.cxx
index 8b42c9c019db..3743205f04aa 100644
--- a/chart2/source/tools/ConfigColorScheme.cxx
+++ b/chart2/source/tools/ConfigColorScheme.cxx
@@ -61,7 +61,7 @@ public:
protected:
// ____ ::utl::ConfigItem ____
- virtual void Commit() SAL_OVERRIDE;
+ virtual void ImplCommit() SAL_OVERRIDE;
virtual void Notify( const Sequence< OUString > & aPropertyNames ) SAL_OVERRIDE;
private:
@@ -86,7 +86,7 @@ void ChartConfigItem::Notify( const Sequence< OUString > & aPropertyNames )
}
}
-void ChartConfigItem::Commit()
+void ChartConfigItem::ImplCommit()
{}
void ChartConfigItem::addPropertyNotification( const OUString & rPropertyName )