Merge pull request #653 from Dmitry-Me/reduceVariableScope

Reduce variable scope
This commit is contained in:
PKEuS 2015-08-26 14:08:10 +02:00
commit 39dd71e49b
1 changed files with 1 additions and 1 deletions

View File

@ -2075,9 +2075,9 @@ bool Variable::arrayDimensions(const Library* lib)
{
const Library::Container* container = lib->detectContainer(_start);
if (container && container->arrayLike_indexOp && container->size_templateArgNo > 0) {
Dimension dimension_;
const Token* tok = Token::findsimplematch(_start, "<");
if (tok) {
Dimension dimension_;
tok = tok->next();
for (int i = 0; i < container->size_templateArgNo && tok; i++) {
tok = tok->nextTemplateArgument();