summaryrefslogtreecommitdiffstats
path: root/basic
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-04-07 09:08:35 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-04-07 12:16:13 +0000
commitbe8b9b4d29abb951aea0ea195541143d256954dc (patch)
treef35cddad2b45e189b23d881cb7c194845eb5c933 /basic
parenttdf#39468 Translate German comments (diff)
downloadcore-be8b9b4d29abb951aea0ea195541143d256954dc.tar.gz
core-be8b9b4d29abb951aea0ea195541143d256954dc.zip
loplugin:redundantcast find cstyle arithmetic casts
Change-Id: If7c259f0d12a41182f476ddb558f7cb5f76f9577 Reviewed-on: https://gerrit.libreoffice.org/36253 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basic')
-rw-r--r--basic/source/runtime/methods.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/basic/source/runtime/methods.cxx b/basic/source/runtime/methods.cxx
index e23536751753..67c0534f6821 100644
--- a/basic/source/runtime/methods.cxx
+++ b/basic/source/runtime/methods.cxx
@@ -4834,12 +4834,12 @@ static long GetDayDiff( const Date& rDate )
long nDiffDays;
if ( aRefDate > rDate )
{
- nDiffDays = (long)(aRefDate - rDate);
+ nDiffDays = aRefDate - rDate;
nDiffDays *= -1;
}
else
{
- nDiffDays = (long)(rDate - aRefDate);
+ nDiffDays = rDate - aRefDate;
}
nDiffDays += 2; // adjustment VisualBasic: 1.Jan.1900 == 2
return nDiffDays;