From 33a4f8ab3c496b4cb356a7babd48b8018de391c8 Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Fri, 23 Aug 2019 09:49:27 +0200 Subject: [PATCH] Revert "Autotest: Fix warning about type mismatch" This reverts commit 501df95d57ff2dff8f72ec582282f785312b427b. Accidently moved to the wrong branch. Change-Id: I845103df2e6fb00a2bc27923caffde2622464eba Reviewed-by: Christian Kandeler --- src/plugins/autotest/quick/quicktesttreeitem.cpp | 2 +- src/plugins/autotest/quick/quicktesttreeitem.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/autotest/quick/quicktesttreeitem.cpp b/src/plugins/autotest/quick/quicktesttreeitem.cpp index d896b56a3cc..85f459ea019 100644 --- a/src/plugins/autotest/quick/quicktesttreeitem.cpp +++ b/src/plugins/autotest/quick/quicktesttreeitem.cpp @@ -456,7 +456,7 @@ TestTreeItem *QuickTestTreeItem::findChildByFileNameAndType(const QString &fileP } TestTreeItem *QuickTestTreeItem::findChildByNameFileAndLine(const QString &name, - const QString &filePath, int line) + const QString &filePath, unsigned line) { return findFirstLevelChild([name, filePath, line](const TestTreeItem *other) { return other->filePath() == filePath && other->line() == line && other->name() == name; diff --git a/src/plugins/autotest/quick/quicktesttreeitem.h b/src/plugins/autotest/quick/quicktesttreeitem.h index f99db4ce544..551d0865a21 100644 --- a/src/plugins/autotest/quick/quicktesttreeitem.h +++ b/src/plugins/autotest/quick/quicktesttreeitem.h @@ -60,7 +60,7 @@ private: TestTreeItem *findChildByFileNameAndType(const QString &filePath, const QString &name, Type tType); TestTreeItem *findChildByNameFileAndLine(const QString &name, const QString &filePath, - int line); + unsigned line); TestTreeItem *unnamedQuickTests() const; };