From 38471babf9233773b414335146a6a2059aa05f96 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Fri, 1 Nov 2013 13:36:12 +0200 Subject: [PATCH] Reduce variable scope. --- gui/test/data/benchmark/simple.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gui/test/data/benchmark/simple.cpp b/gui/test/data/benchmark/simple.cpp index 76916352a..21a2d4998 100644 --- a/gui/test/data/benchmark/simple.cpp +++ b/gui/test/data/benchmark/simple.cpp @@ -1356,7 +1356,6 @@ static int doAssignment(Variables &variables, const Token *tok, bool dereference Variables::VariableUsage *var1 = variables.find(varid1); if (var1) { - Variables::VariableUsage *var2 = 0; int start = 1; // search for '=' @@ -1437,7 +1436,7 @@ static int doAssignment(Variables &variables, const Token *tok, bool dereference // check if variable is local varid2 = tok->tokAt(next)->varId(); - var2 = variables.find(varid2); + Variables::VariableUsage *var2 = variables.find(varid2); if (var2) { // local variable (alias or read it) if (var1->_type == Variables::pointer) {