| commit | 057a74c2f20256c34e97dae246e6e1867a364b84 | [log] |
|---|---|---|
| author | Caolán McNamara <caolanm@redhat.com> | Wed Sep 29 09:30:42 2021 +0100 |
| committer | Caolán McNamara <caolanm@redhat.com> | Wed Sep 29 12:22:22 2021 +0200 |
| tree | c3c64075e3450ffd08103658537016ed421ad048 | |
| parent | 7d21e2bc4628138bf2617a5c672c0da8d4e9e96f [diff] |
this scoping detracts from readability Change-Id: I99a51bf68ef1c98e4023413b9274c4361f8a9b96 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122797 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
diff --git a/connectivity/source/commontools/dbconversion.cxx b/connectivity/source/commontools/dbconversion.cxx index cae8470..6a2e211 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 )