summaryrefslogtreecommitdiff
path: root/idlc
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2013-02-13 15:08:01 +0100
committerJulien Nabet <serval2412@yahoo.fr>2013-02-13 15:08:20 +0100
commit814ae45d4b968c95a49fb35c47f4c813fa2dc026 (patch)
tree53a61f5a4093b8d28a81b3e5a16aa2c9f9089c1f /idlc
parent03b941e9ae63626a3336aabdb6a3485835ec6f9d (diff)
Some cppcheck cleaning
Change-Id: I099171d85a51095f0ff6d592c1260d931f9769b2
Diffstat (limited to 'idlc')
-rw-r--r--idlc/source/astscope.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/idlc/source/astscope.cxx b/idlc/source/astscope.cxx
index 3d26b3a1182f..1c0d4fd84101 100644
--- a/idlc/source/astscope.cxx
+++ b/idlc/source/astscope.cxx
@@ -259,7 +259,6 @@ AstDeclaration* AstScope::lookupPrimitiveType(ExprType type)
{
AstDeclaration* pDecl = NULL;
AstScope* pScope = NULL;
- AstBaseType* pBaseType = NULL;
OString typeName;
pDecl = scopeAsDecl(this);
if ( !pDecl )
@@ -324,7 +323,7 @@ AstDeclaration* AstScope::lookupPrimitiveType(ExprType type)
if ( pDecl && (pDecl->getNodeType() == NT_predefined) )
{
- pBaseType = (AstBaseType*)pDecl;
+ AstBaseType* pBaseType = (AstBaseType*)pDecl;
if ( pBaseType->getExprType() == type )
return pDecl;