summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-09-29 09:30:42 +0100
committerCaolán McNamara <caolanm@redhat.com>2021-09-29 12:22:22 +0200
commit057a74c2f20256c34e97dae246e6e1867a364b84 (patch)
treec3c64075e3450ffd08103658537016ed421ad048 /connectivity
parent7d21e2bc4628138bf2617a5c672c0da8d4e9e96f (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>
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/commontools/dbconversion.cxx9
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 )