summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2015-03-13 14:16:51 +0100
committerMichael Stahl <mstahl@redhat.com>2015-03-13 16:23:26 +0100
commit077723111292ea615437f3bc2f1e47cf77d7ad42 (patch)
treef851f81cea82fcbf8251f8418b3f2a26f3085f64 /vcl
parent386a85ed50a3e4832644072950a30304ba6c58a6 (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 'vcl')
-rw-r--r--vcl/source/control/field2.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/control/field2.cxx b/vcl/source/control/field2.cxx
index efd554952db1..c356a827535d 100644
--- a/vcl/source/control/field2.cxx
+++ b/vcl/source/control/field2.cxx
@@ -1239,12 +1239,12 @@ static void ImplDateIncrementDay( Date& rDate, bool bUp )
if ( bUp )
{
if ( (rDate.GetDay() != 31) || (rDate.GetMonth() != 12) || (rDate.GetYear() != 9999) )
- rDate++;
+ ++rDate;
}
else
{
if ( (rDate.GetDay() != 1 ) || (rDate.GetMonth() != 1) || (rDate.GetYear() != 0) )
- rDate--;
+ --rDate;
}
}