vcl: make nInt const

Change-Id: I1ecb99bc6bae217d036384ce42a9f8dbcc8ca8b1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191150
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
This commit is contained in:
Christopher Sherlock
2026-01-12 15:29:12 +01:00
committed by Michael Weghorn
parent 7a1cf7c9a8
commit ce5a499ebb
+2 -2
View File
@@ -102,7 +102,7 @@ void appendFixedInt( sal_Int32 nValue, OStringBuffer& rBuffer )
while( nDiv-- )
nFactor *= 10;
sal_Int32 nInt = nValue / nFactor;
const sal_Int32 nInt = nValue / nFactor;
rBuffer.append( nInt );
if (nFactor > 1 && nValue % nFactor)
{
@@ -129,7 +129,7 @@ void appendColor( const Color& rColor, OStringBuffer& rBuffer, bool bConvertToGr
if( bConvertToGrey )
{
sal_uInt8 cByte = rColor.GetLuminance();
const sal_uInt8 cByte = rColor.GetLuminance();
appendDouble( cByte / 255.0, rBuffer );
}
else