diff options
author | Michael Stahl <mstahl@redhat.com> | 2015-03-13 14:16:51 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2015-03-13 16:23:26 +0100 |
commit | 077723111292ea615437f3bc2f1e47cf77d7ad42 (patch) | |
tree | f851f81cea82fcbf8251f8418b3f2a26f3085f64 /chart2 | |
parent | 386a85ed50a3e4832644072950a30304ba6c58a6 (diff) |
V803 decreased performance postfix increment
These are pretty silly anyway, but apparently it complains even about
integer variables which make this rather a waste of time.
Change-Id: I15e847d33d5decd2adcab04e4f1567d3997d28a2
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/view/axes/ScaleAutomatism.cxx | 2 | ||||
-rw-r--r-- | chart2/source/view/main/ChartView.cxx | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/chart2/source/view/axes/ScaleAutomatism.cxx b/chart2/source/view/axes/ScaleAutomatism.cxx index 5747d81cab1c..f58bde445981 100644 --- a/chart2/source/view/axes/ScaleAutomatism.cxx +++ b/chart2/source/view/axes/ScaleAutomatism.cxx @@ -570,7 +570,7 @@ void ScaleAutomatism::calculateExplicitIncrementAndScaleForDateTimeAxis( { case DAY: if( rExplicitScale.ShiftedCategoryPosition ) - aMaxDate++;//for explicit scales we need one interval more (maximum excluded) + ++aMaxDate; //for explicit scales we need one interval more (maximum excluded) break; case MONTH: aMinDate.SetDay(1); diff --git a/chart2/source/view/main/ChartView.cxx b/chart2/source/view/main/ChartView.cxx index 7ae6465b1307..ad10fb558add 100644 --- a/chart2/source/view/main/ChartView.cxx +++ b/chart2/source/view/main/ChartView.cxx @@ -1888,7 +1888,8 @@ bool ChartView::getExplicitValuesForAxis( switch( rExplicitScale.TimeResolution ) { case ::com::sun::star::chart::TimeUnit::DAY: - aMaxDate--;break; + --aMaxDate; + break; case ::com::sun::star::chart::TimeUnit::MONTH: aMaxDate = DateHelper::GetDateSomeMonthsAway(aMaxDate,-1); break; |