Merge pull request #653 from Dmitry-Me/reduceVariableScope
Reduce variable scope
This commit is contained in:
commit
39dd71e49b
|
@ -2075,9 +2075,9 @@ bool Variable::arrayDimensions(const Library* lib)
|
||||||
{
|
{
|
||||||
const Library::Container* container = lib->detectContainer(_start);
|
const Library::Container* container = lib->detectContainer(_start);
|
||||||
if (container && container->arrayLike_indexOp && container->size_templateArgNo > 0) {
|
if (container && container->arrayLike_indexOp && container->size_templateArgNo > 0) {
|
||||||
Dimension dimension_;
|
|
||||||
const Token* tok = Token::findsimplematch(_start, "<");
|
const Token* tok = Token::findsimplematch(_start, "<");
|
||||||
if (tok) {
|
if (tok) {
|
||||||
|
Dimension dimension_;
|
||||||
tok = tok->next();
|
tok = tok->next();
|
||||||
for (int i = 0; i < container->size_templateArgNo && tok; i++) {
|
for (int i = 0; i < container->size_templateArgNo && tok; i++) {
|
||||||
tok = tok->nextTemplateArgument();
|
tok = tok->nextTemplateArgument();
|
||||||
|
|
Loading…
Reference in New Issue