From c9f595bfc7aa27f30e66356fced1cf8eb2486ac4 Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Fri, 26 Feb 2016 10:58:14 +0100 Subject: [PATCH] AutoTest: Fix variable name This variable had been forgotten during the refactoring. Change-Id: Icafe84ea04dec5822d2879db87f3b7334020924e Reviewed-by: David Schulz --- src/plugins/autotest/testtreeitem.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/autotest/testtreeitem.cpp b/src/plugins/autotest/testtreeitem.cpp index d3a1207dbed..c780bea089d 100644 --- a/src/plugins/autotest/testtreeitem.cpp +++ b/src/plugins/autotest/testtreeitem.cpp @@ -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(other)->asGoogleTestTreeItem(); - return other->proFile() == referencingFile + return other->proFile() == proFile && other->name() == name && gtestItem->state() == state; });