summaryrefslogtreecommitdiff
path: root/tools/source
diff options
context:
space:
mode:
Diffstat (limited to 'tools/source')
-rw-r--r--tools/source/datetime/tdate.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/source/datetime/tdate.cxx b/tools/source/datetime/tdate.cxx
index 1829806b1be1..899f5c1b819e 100644
--- a/tools/source/datetime/tdate.cxx
+++ b/tools/source/datetime/tdate.cxx
@@ -110,12 +110,12 @@ void Date::setDateFromDMY( sal_uInt16 nDay, sal_uInt16 nMonth, sal_Int16 nYear )
mnDate =
(static_cast<sal_Int32>( nYear ) * 10000) -
(static_cast<sal_Int32>( nMonth % 100 ) * 100) -
- (static_cast<sal_Int32>( nDay % 100 ));
+ static_cast<sal_Int32>( nDay % 100 );
else
mnDate =
(static_cast<sal_Int32>( nYear ) * 10000) +
(static_cast<sal_Int32>( nMonth % 100 ) * 100) +
- (static_cast<sal_Int32>( nDay % 100 ));
+ static_cast<sal_Int32>( nDay % 100 );
}
void Date::SetDate( sal_Int32 nNewDate )