summaryrefslogtreecommitdiff
path: root/idlc/source/aststruct.cxx
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2014-12-17 21:16:11 +0100
committerNoel Grandin <noelgrandin@gmail.com>2014-12-18 06:39:15 +0000
commita23f6eb3ae49dfc326c6e57a8ab95a840c0661d2 (patch)
treee4bfa45604b2a62a6683573305763dd13f195e33 /idlc/source/aststruct.cxx
parent36936c2580bf15117dd3bf775dd91340d16d3239 (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/aststruct.cxx')
-rw-r--r--idlc/source/aststruct.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/idlc/source/aststruct.cxx b/idlc/source/aststruct.cxx
index 482ee73dadfa..0a85a12965fa 100644
--- a/idlc/source/aststruct.cxx
+++ b/idlc/source/aststruct.cxx
@@ -121,12 +121,11 @@ bool AstStruct::dump(RegistryKey& rKey)
{
DeclList::const_iterator iter = getIteratorBegin();
DeclList::const_iterator end = getIteratorEnd();
- AstDeclaration* pDecl = NULL;
AstMember* pMember = NULL;
sal_uInt16 index = 0;
while ( iter != end )
{
- pDecl = *iter;
+ AstDeclaration* pDecl = *iter;
if ( pDecl->getNodeType() == NT_member )
{
pMember = static_cast<AstMember*>(pDecl);