Commit c3b7dc0a authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh

C++: Optimize condition

Change-Id: Ifc48b9c89d6399636aed3693a0736ad6d58f0cff
Reviewed-by: default avatarNikolai Kosjar <nikolai.kosjar@digia.com>
parent 87d8202c
......@@ -87,12 +87,10 @@ public:
protected:
bool preVisit(Symbol *s)
{
if (s->asBlock()) {
if (s->line() < line || (s->line() == line && s->column() <= column))
return true;
if (s->line() < line || (s->line() == line && s->column() <= column)) {
// skip blocks
} if (s->line() < line || (s->line() == line && s->column() <= column)) {
symbol = s;
if (!s->asBlock())
symbol = s;
return true;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment