Commit c9f595bf authored by Christian Stenger's avatar Christian Stenger Committed by David Schulz

AutoTest: Fix variable name

This variable had been forgotten during the refactoring.

Change-Id: Icafe84ea04dec5822d2879db87f3b7334020924e
Reviewed-by: default avatarDavid Schulz <david.schulz@theqtcompany.com>
parent 19c8c9bc
......@@ -440,11 +440,11 @@ bool GoogleTestTreeItem::modifyTestSetContent(const QString &fileName,
TestTreeItem *GoogleTestTreeItem::findChildByNameStateAndFile(const QString &name,
GoogleTestTreeItem::TestStates state,
const QString &referencingFile)
const QString &proFile)
{
return findChildBy([name, state, referencingFile](const TestTreeItem *other) -> bool {
return findChildBy([name, state, proFile](const TestTreeItem *other) -> bool {
GoogleTestTreeItem *gtestItem = const_cast<TestTreeItem *>(other)->asGoogleTestTreeItem();
return other->proFile() == referencingFile
return other->proFile() == proFile
&& other->name() == name
&& gtestItem->state() == state;
});
......
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