diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2014-12-22 17:57:48 +0100 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2014-12-23 05:53:41 +0000 |
commit | ea644f0e90d0c9585e73bdec240908803a38d4a6 (patch) | |
tree | df140769eaf45d4205d4ac50147809597e3e6d73 /starmath | |
parent | a6c0583675b6fe4210ae8249728fe5d4df125f5c (diff) |
fdo#39440 reduce scope of local variables
This addresses some cppcheck warnings.
Change-Id: I404f121ee2e5020359a662f54ffe341f466cd1d5
Reviewed-on: https://gerrit.libreoffice.org/13608
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/visitors.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/starmath/source/visitors.cxx b/starmath/source/visitors.cxx index e929837bf9ba..40e36671e244 100644 --- a/starmath/source/visitors.cxx +++ b/starmath/source/visitors.cxx @@ -1636,8 +1636,8 @@ void SmCloningVisitor::CloneKids( SmStructureNode* pSource, SmStructureNode* pTa SmNodeArray aNodes( nSize ); //Clone children - SmNode* pKid; for( sal_uInt16 i = 0; i < nSize; i++ ){ + SmNode* pKid; if( NULL != ( pKid = pSource->GetSubNode( i ) ) ) pKid->Accept( this ); else |