diff options
author | Pierre-André Jacquod <pjacquod@alumni.ethz.ch> | 2011-10-02 12:08:16 +0200 |
---|---|---|
committer | Pierre-André Jacquod <pjacquod@alumni.ethz.ch> | 2011-10-07 15:57:40 +0200 |
commit | c528a8e48de0953b35313a66cc5e36064af06e28 (patch) | |
tree | f8e861aacb410872ef6a5aee9bd1b6eef36e077e /connectivity | |
parent | 07ba372985eb0884e46b9285c4f7c099eb43a392 (diff) |
cppcheck scope reduction in connectivity/.. main.cxx
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/workben/testmoz/main.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
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<XResultSet> &xRes) { - sal_Int32 nRows = 0; printColumns(xRes); - if(xRes.is()) { + if(xRes.is()) + { + sal_Int32 nRows = 0; while( xRes.is() && xRes->next()) { nRows++; |