forked from qt-creator/qt-creator
ClangCodeModel: Fix possible crash in clangd test
Change-Id: Ifb68b62f1076fa6b086717d7a5db939e52e5e9f2 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -636,7 +636,7 @@ void ClangdTestTooltips::test()
|
|||||||
helpItem = h;
|
helpItem = h;
|
||||||
loop.quit();
|
loop.quit();
|
||||||
};
|
};
|
||||||
connect(client(), &ClangdClient::helpItemGathered, handler);
|
connect(client(), &ClangdClient::helpItemGathered, &loop, handler);
|
||||||
|
|
||||||
QTextCursor cursor(doc->document());
|
QTextCursor cursor(doc->document());
|
||||||
const int pos = Utils::Text::positionInText(doc->document(), line, column);
|
const int pos = Utils::Text::positionInText(doc->document(), line, column);
|
||||||
|
Reference in New Issue
Block a user