From 814ae45d4b968c95a49fb35c47f4c813fa2dc026 Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Wed, 13 Feb 2013 15:08:01 +0100 Subject: Some cppcheck cleaning Change-Id: I099171d85a51095f0ff6d592c1260d931f9769b2 --- idlc/source/astscope.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'idlc/source/astscope.cxx') 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; -- cgit