diff options
-rw-r--r-- | connectivity/source/commontools/dbconversion.cxx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/connectivity/source/commontools/dbconversion.cxx b/connectivity/source/commontools/dbconversion.cxx index cae8470479c3..6a2e21191fa4 100644 --- a/connectivity/source/commontools/dbconversion.cxx +++ b/connectivity/source/commontools/dbconversion.cxx @@ -333,12 +333,9 @@ namespace dbtools css::util::Time DBTypeConversion::toTime(const double dVal, short nDigits) { const double nDays = std::trunc(dVal); - sal_Int64 nNS; - { - double fSeconds((dVal - nDays) * (fNanoSecondsPerDay / nanoSecInSec)); - fSeconds = ::rtl::math::round( fSeconds, nDigits ); - nNS = fSeconds * nanoSecInSec; - } + double fSeconds((dVal - nDays) * (fNanoSecondsPerDay / nanoSecInSec)); + fSeconds = ::rtl::math::round(fSeconds, nDigits); + sal_Int64 nNS = fSeconds * nanoSecInSec; sal_Int16 nSign; if ( nNS < 0 ) |