From e8fd5a07eca70912ddee45aaa34d434809b59fb7 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 25 Apr 2016 09:59:16 +0200 Subject: update loplugin stylepolice to check local pointers vars are actually pointer vars. Also convert from regex to normal code, so we can enable this plugin all the time. Change-Id: Ie36a25ecba61c18f99c77c77646d6459a443cbd1 Reviewed-on: https://gerrit.libreoffice.org/24391 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sot/source/sdstor/ucbstorage.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sot/source') diff --git a/sot/source/sdstor/ucbstorage.cxx b/sot/source/sdstor/ucbstorage.cxx index 33d2f5272bfe..704be0047579 100644 --- a/sot/source/sdstor/ucbstorage.cxx +++ b/sot/source/sdstor/ucbstorage.cxx @@ -837,9 +837,9 @@ sal_uInt64 UCBStorageStream_Impl::ReadSourceWriteTemporary(sal_uInt64 aLength) sal_uLong aReaded = 32000; - for (sal_uInt64 pInd = 0; pInd < aLength && aReaded == 32000 ; pInd += 32000) + for (sal_uInt64 nInd = 0; nInd < aLength && aReaded == 32000 ; nInd += 32000) { - sal_uLong aToCopy = min( aLength - pInd, 32000 ); + sal_uLong aToCopy = min( aLength - nInd, 32000 ); aReaded = m_rSource->readBytes( aData, aToCopy ); aResult += m_pStream->Write( aData.getArray(), aReaded ); } -- cgit v1.2.3