From 5d92f55416a4f7b77841615b83514ea192b612d8 Mon Sep 17 00:00:00 2001 From: Pierre-André Jacquod Date: Sun, 2 Oct 2011 13:31:52 +0200 Subject: cppcheck scope reduction of var in extensions/...Basic.cpp --- extensions/test/ole/AxTestComponents/Basic.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'extensions') diff --git a/extensions/test/ole/AxTestComponents/Basic.cpp b/extensions/test/ole/AxTestComponents/Basic.cpp index 4fa950922801..e6e4c97b0ea9 100644 --- a/extensions/test/ole/AxTestComponents/Basic.cpp +++ b/extensions/test/ole/AxTestComponents/Basic.cpp @@ -784,7 +784,6 @@ void CBasic::printMulArray( SAFEARRAY* val, VARTYPE type) long ubound3; long length1; long length2; - long length3; char buff[4096]; buff[0]=0; @@ -843,7 +842,7 @@ void CBasic::printMulArray( SAFEARRAY* val, VARTYPE type) hr= SafeArrayGetLBound( val, 3, &lbound3); hr= SafeArrayGetUBound( val, 3, &ubound3); - length3= ubound3 - lbound3 +1; + long length3= ubound3 - lbound3 +1; char tmpBuf[1024]; tmpBuf[0]=0; long index[3]; -- cgit