diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2014-12-17 21:16:11 +0100 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2014-12-18 06:39:15 +0000 |
commit | a23f6eb3ae49dfc326c6e57a8ab95a840c0661d2 (patch) | |
tree | e4bfa45604b2a62a6683573305763dd13f195e33 /idlc/source/astoperation.cxx | |
parent | 36936c2580bf15117dd3bf775dd91340d16d3239 (diff) |
fdo#39440 reduce scope of local variables
This addresses some cppcheck warnings.
Change-Id: Ib16e4ecc0e0c43b2c1fb527eb0668a960ae9756e
Reviewed-on: https://gerrit.libreoffice.org/13513
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'idlc/source/astoperation.cxx')
-rw-r--r-- | idlc/source/astoperation.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/idlc/source/astoperation.cxx b/idlc/source/astoperation.cxx index 5a38c8acbc20..ce67313a8632 100644 --- a/idlc/source/astoperation.cxx +++ b/idlc/source/astoperation.cxx @@ -60,12 +60,11 @@ bool AstOperation::dumpBlob(typereg::Writer & rBlob, sal_uInt16 index) { DeclList::const_iterator iter = getIteratorBegin(); DeclList::const_iterator end = getIteratorEnd(); - AstDeclaration* pDecl = NULL; RTParamMode paramMode; sal_uInt16 paramIndex = 0; while ( iter != end ) { - pDecl = *iter; + AstDeclaration* pDecl = *iter; if ( pDecl->getNodeType() == NT_parameter ) { AstParameter* pParam = static_cast<AstParameter*>(pDecl); |