work save
This commit is contained in:
parent
2fb476edd9
commit
ed7da7b487
|
@ -391,10 +391,10 @@ PStatement CppScopes::findScopeAtLine(int line)
|
|||
start = mid+1;
|
||||
}
|
||||
}
|
||||
if (start<mScopes.size())
|
||||
return mScopes[start]->statement;
|
||||
if (end>=0)
|
||||
return mScopes[end]->statement;
|
||||
else
|
||||
return mScopes.back()->statement;
|
||||
return PStatement();
|
||||
}
|
||||
|
||||
void CppScopes::addScope(int line, PStatement scopeStatement)
|
||||
|
|
Loading…
Reference in New Issue