summaryrefslogtreecommitdiffstats
path: root/chart2
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2011-12-01 21:03:42 +0100
committerEike Rathke <erack@redhat.com>2011-12-01 21:04:29 +0100
commit86adb5cacb4fe3e7fb869299447da5876f0da30d (patch)
treef7998dd1a12a82ca53a4fa155cdf5536ac25ef62 /chart2
parentpull in module headers before solver (diff)
downloadcore-86adb5cacb4fe3e7fb869299447da5876f0da30d.tar.gz
core-86adb5cacb4fe3e7fb869299447da5876f0da30d.zip
get rid of class Date and Time default ctor with system time penalty
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/view/axes/DateScaling.cxx2
-rw-r--r--chart2/source/view/main/ChartView.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/chart2/source/view/axes/DateScaling.cxx b/chart2/source/view/axes/DateScaling.cxx
index 57850921c244..cb532ab79f5f 100644
--- a/chart2/source/view/axes/DateScaling.cxx
+++ b/chart2/source/view/axes/DateScaling.cxx
@@ -168,7 +168,7 @@ double SAL_CALL InverseDateScaling::doScaling( double value )
else
value -= 0.5;
}
- Date aDate;
+ Date aDate( Date::EMPTY );
double fYear = ::rtl::math::approxFloor(value/lcl_fNumberOfMonths);
double fMonth = ::rtl::math::approxFloor(value-(fYear*lcl_fNumberOfMonths));
if( fMonth==0.0 )
diff --git a/chart2/source/view/main/ChartView.cxx b/chart2/source/view/main/ChartView.cxx
index 04c42cd67f64..78a50e2f50bc 100644
--- a/chart2/source/view/main/ChartView.cxx
+++ b/chart2/source/view/main/ChartView.cxx
@@ -464,7 +464,7 @@ private:
};
AxisUsage::AxisUsage()
- : aScaleAutomatism(AxisHelper::createDefaultScale(),Date())
+ : aScaleAutomatism(AxisHelper::createDefaultScale(),Date( Date::SYSTEM ))
{
}