summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-09-04 08:53:38 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-09-04 10:52:41 +0200
commit7aa7f4d9e4294959748bccf9e763154740251635 (patch)
tree79fc3855ce0cc1141abdda514df374cd42ab259c /tools
parent6f511a5de909b2fb6cb42b851e0cc90f54fbdd59 (diff)
loplugin:unnecessaryparen include c++ casts
Change-Id: I132d3c66f0562e2c37a02eaf4c168d06c2b473eb Reviewed-on: https://gerrit.libreoffice.org/41874 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'tools')
-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 )