diff options
author | Christian Stenger <christian.stenger@qt.io> | 2021-06-16 13:41:19 +0200 |
---|---|---|
committer | Christian Stenger <christian.stenger@qt.io> | 2021-06-17 08:30:35 +0000 |
commit | 5482109c0587eca171b9b302543d23d51eab4b06 (patch) | |
tree | 016089bfdfea3ef00732c65b9c45a43941553acc | |
parent | d7dda80ee2e1dac92bd88e006876026be9884695 (diff) | |
download | qt-creator-5482109c0587eca171b9b302543d23d51eab4b06.tar.gz |
AutoTest: Avoid unnecessary conversion
Change-Id: I9abe511101614802ef887cb51e45fe2b6ccb3218
Reviewed-by: David Schulz <david.schulz@qt.io>
-rw-r--r-- | src/plugins/autotest/catch/catchtreeitem.cpp | 3 |
1 files changed, 1 insertions, 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<ITestConfiguration *> 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; |