From 077723111292ea615437f3bc2f1e47cf77d7ad42 Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Fri, 13 Mar 2015 14:16:51 +0100 Subject: 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 --- svtools/source/control/calendar.cxx | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'svtools') diff --git a/svtools/source/control/calendar.cxx b/svtools/source/control/calendar.cxx index c2dc94ab5fd5..72f2966fa0b6 100644 --- a/svtools/source/control/calendar.cxx +++ b/svtools/source/control/calendar.cxx @@ -93,7 +93,7 @@ static void ImplCalendarSelectDateRange( IntDateSet* pTable, while ( aStartDate <= aEndDate ) { pTable->insert( aStartDate.GetDate() ); - aStartDate++; + ++aStartDate; } } else @@ -443,7 +443,7 @@ void Calendar::ImplFormat() aTempDate += nDaysInMonth; } Date aTempDate2 = aTempDate; - aTempDate2--; + --aTempDate2; nDaysInMonth = aTempDate2.GetDaysInMonth(); aTempDate2 -= nDaysInMonth-1; nWeekDay = (sal_uInt16)aTempDate2.GetDayOfWeek(); @@ -1086,7 +1086,7 @@ void Calendar::ImplMouseSelect( const Date& rDate, sal_uInt16 nHitTest, Date aTempDate = rDate; if ( !(nHitTest & CALENDAR_HITTEST_DAY) ) - aTempDate--; + --aTempDate; if ( mbMultiSelection ) { @@ -1231,7 +1231,7 @@ void Calendar::ImplScroll( bool bPrev ) Date aNewFirstMonth = GetFirstMonth(); if ( bPrev ) { - aNewFirstMonth--; + --aNewFirstMonth; aNewFirstMonth -= aNewFirstMonth.GetDaysInMonth()-1; } else @@ -1526,11 +1526,11 @@ void Calendar::KeyInput( const KeyEvent& rKEvt ) break; case KEY_LEFT: - aNewDate--; + --aNewDate; break; case KEY_RIGHT: - aNewDate++; + ++aNewDate; break; case KEY_UP: @@ -1897,7 +1897,7 @@ void Calendar::SetCurDate( const Date& rNewDate ) { Date aFirstDate = GetFirstMonth(); aFirstDate += aFirstDate.GetDaysInMonth(); - aTempDate++; + ++aTempDate; while ( nDateOff > aTempDate.GetDaysInMonth() ) { aFirstDate += aFirstDate.GetDaysInMonth(); @@ -1957,7 +1957,7 @@ Date Calendar::GetLastMonth() const sal_uInt16 nMonthCount = GetMonthCount(); for ( sal_uInt16 i = 0; i < nMonthCount; i++ ) aDate += aDate.GetDaysInMonth(); - aDate--; + --aDate; return aDate; } @@ -2037,7 +2037,7 @@ Rectangle Calendar::GetDateRect( const Date& rDate ) const } else nDayIndex++; - aLastDate++; + ++aLastDate; } } } -- cgit