summaryrefslogtreecommitdiff
path: root/automation
diff options
context:
space:
mode:
authorPierre-André Jacquod <pjacquod@alumni.ethz.ch>2011-10-03 12:43:42 +0200
committerPierre-André Jacquod <pjacquod@alumni.ethz.ch>2011-10-07 15:57:51 +0200
commit2b6ef29f451c707c151025b85e87196c3602b44e (patch)
treee3153795cb3e74c47b71a459625412d1b5eed1b3 /automation
parente9f3d1e50500a410a0f33c6a5ffc38207cd31ca6 (diff)
cppcheck reduce scope of var in automation/...objtest.cxx
Diffstat (limited to 'automation')
-rw-r--r--automation/source/testtool/objtest.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/automation/source/testtool/objtest.cxx b/automation/source/testtool/objtest.cxx
index 079e80f41324..dd1ceab1f53c 100644
--- a/automation/source/testtool/objtest.cxx
+++ b/automation/source/testtool/objtest.cxx
@@ -3021,7 +3021,6 @@ sal_Bool TestToolObj::ReturnResults( SvStream *pIn )
{
sal_uInt16 nId;
- sal_uLong nClearSequence = 0;
sal_Bool bSequenceOK = sal_True;
CNames *pReverseControlsKontext = NULL;
@@ -3506,6 +3505,7 @@ sal_Bool TestToolObj::ReturnResults( SvStream *pIn )
delete pRetStream;
if ( bSequenceOK )
{
+ sal_uLong nClearSequence = 0; // before a lot of code was deleted, this was a funct. global var.
nSequence++;
pShortNames->Invalidate( nClearSequence - KEEP_SEQUENCES );
}