From 057a74c2f20256c34e97dae246e6e1867a364b84 Mon Sep 17 00:00:00 2001
From: Caolán McNamara <caolanm@redhat.com>
Date: Wed, 29 Sep 2021 09:30:42 +0100
Subject: this scoping detracts from readability
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Change-Id: I99a51bf68ef1c98e4023413b9274c4361f8a9b96
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122797
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
---
 connectivity/source/commontools/dbconversion.cxx | 9 +++------
 1 file 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 )
-- 
cgit