From 463f83630f8a5797cec1bd7dac354a3557572efb Mon Sep 17 00:00:00 2001 From: Roberto Raggi Date: Fri, 6 Aug 2010 11:29:41 +0200 Subject: Speed up the comutation of the local members. --- src/shared/cplusplus/CheckDeclaration.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/shared/cplusplus/CheckDeclaration.cpp') diff --git a/src/shared/cplusplus/CheckDeclaration.cpp b/src/shared/cplusplus/CheckDeclaration.cpp index 98e8616f70..5eb98735d1 100644 --- a/src/shared/cplusplus/CheckDeclaration.cpp +++ b/src/shared/cplusplus/CheckDeclaration.cpp @@ -187,12 +187,8 @@ bool CheckDeclaration::visit(SimpleDeclarationAST *ast) _scope, &name); unsigned location = semantic()->location(it->value); - if (! location) { - if (it->value) - location = it->value->firstToken(); - else - location = ast->firstToken(); - } + if (! location) + location = ast->firstToken(); Function *fun = 0; if (declTy && 0 != (fun = declTy->asFunctionType())) { -- cgit v1.2.1