From c528a8e48de0953b35313a66cc5e36064af06e28 Mon Sep 17 00:00:00 2001 From: Pierre-André Jacquod Date: Sun, 2 Oct 2011 12:08:16 +0200 Subject: cppcheck scope reduction in connectivity/.. main.cxx --- connectivity/workben/testmoz/main.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'connectivity/workben') diff --git a/connectivity/workben/testmoz/main.cxx b/connectivity/workben/testmoz/main.cxx index 798bbcaa24ea..1a49208148ec 100644 --- a/connectivity/workben/testmoz/main.cxx +++ b/connectivity/workben/testmoz/main.cxx @@ -457,9 +457,10 @@ void menuBookmark() } int autoTest(Reference &xRes) { - sal_Int32 nRows = 0; printColumns(xRes); - if(xRes.is()) { + if(xRes.is()) + { + sal_Int32 nRows = 0; while( xRes.is() && xRes->next()) { nRows++; -- cgit