From 975d2d15e1cb3ebe8e588e77fd2e74f41156cdef Mon Sep 17 00:00:00 2001 From: Christopher Sherlock Date: Fri, 19 Sep 2025 01:40:15 +1000 Subject: [PATCH] vcl: declare variables seperately on own lines Change-Id: I27dd89a3a75cfd7b1b52d4982a619d84fcc4020d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191149 Reviewed-by: Michael Weghorn Tested-by: Jenkins --- vcl/source/pdf/pdfwriterimpl_utils.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vcl/source/pdf/pdfwriterimpl_utils.cxx b/vcl/source/pdf/pdfwriterimpl_utils.cxx index c553618942db..3dfbaa91c919 100644 --- a/vcl/source/pdf/pdfwriterimpl_utils.cxx +++ b/vcl/source/pdf/pdfwriterimpl_utils.cxx @@ -95,7 +95,10 @@ void appendFixedInt( sal_Int32 nValue, OStringBuffer& rBuffer ) rBuffer.append( '-' ); nValue = -nValue; } - sal_Int32 nFactor = 1, nDiv = nLog10Divisor; + + sal_Int32 nFactor = 1; + sal_Int32 nDiv = nLog10Divisor; + while( nDiv-- ) nFactor *= 10;