From 5482109c0587eca171b9b302543d23d51eab4b06 Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Wed, 16 Jun 2021 13:41:19 +0200 Subject: AutoTest: Avoid unnecessary conversion Change-Id: I9abe511101614802ef887cb51e45fe2b6ccb3218 Reviewed-by: David Schulz --- src/plugins/autotest/catch/catchtreeitem.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/plugins/autotest/catch/catchtreeitem.cpp b/src/plugins/autotest/catch/catchtreeitem.cpp index 020c5fd7d1..5b18258641 100644 --- a/src/plugins/autotest/catch/catchtreeitem.cpp +++ b/src/plugins/autotest/catch/catchtreeitem.cpp @@ -289,12 +289,11 @@ QList CatchTreeItem::getTestConfigurationsForFile(const Ut if (!project || type() != Root) return result; - const QString filePath = fileName.toString(); for (int row = 0, count = childCount(); row < count; ++row) { const TestTreeItem *item = childItem(row); QTC_ASSERT(item, continue); - if (childAt(row)->name() != filePath) + if (childAt(row)->filePath() != fileName) continue; CatchConfiguration *testConfig = nullptr; -- cgit v1.2.1