work save

This commit is contained in:
royqh1979@gmail.com 2021-08-24 03:42:56 +08:00
parent 2fb476edd9
commit ed7da7b487
1 changed files with 3 additions and 3 deletions

View File

@ -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)