diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2015-06-13 10:09:21 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-06-15 13:34:14 +0200 |
commit | 4ea281a3ccb5bd21e1808d8cb127a91a1bb72691 (patch) | |
tree | 183a2ab634d770b7ef777323fa6851fc38e14011 /sax | |
parent | 943f4b4ff1c524c514584c459b899ba3e9dfb71f (diff) |
cppcheck:redundantAssignment
Change-Id: I1167d0ce6b6f6e48309d0551c1d2a283d79546a7
Diffstat (limited to 'sax')
-rw-r--r-- | sax/source/tools/converter.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sax/source/tools/converter.cxx b/sax/source/tools/converter.cxx index 3ef609e2f288..8b077f11360d 100644 --- a/sax/source/tools/converter.cxx +++ b/sax/source/tools/converter.cxx @@ -818,12 +818,11 @@ bool Converter::convertDuration(double& rfTime, { if ( nDays ) nHours += nDays * 24; // add the days to the hours part - double fTempTime = 0.0; double fHour = nHours; double fMin = nMins; double fSec = nSecs; double fFraction = sDoubleStr.toDouble(); - fTempTime = fHour / 24; + double fTempTime = fHour / 24; fTempTime += fMin / (24 * 60); fTempTime += fSec / (24 * 60 * 60); fTempTime += fFraction / (24 * 60 * 60); |