forked from qt-creator/qt-creator
CppEditor: Fix always-false-condition
The condition didn't make sense. tk.kind() can't be < T_FIRST_QT_KEYWORD *and* tk.kind() > T_LAST_KEYWORD at the same time. Change-Id: Id300ad84f37eeff5081b0389c00d574a9cb23f35 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -581,7 +581,7 @@ BaseTextEditorWidget::Link FollowSymbolUnderCursor::findLink(const QTextCursor &
|
||||
}
|
||||
}
|
||||
|
||||
if (tk.isNot(T_IDENTIFIER) && tk.kind() < T_FIRST_QT_KEYWORD && tk.kind() > T_LAST_KEYWORD)
|
||||
if (tk.isNot(T_IDENTIFIER) && !tk.isQtKeyword())
|
||||
return link;
|
||||
|
||||
tc.setPosition(endOfToken);
|
||||
|
||||
Reference in New Issue
Block a user