From 501df95d57ff2dff8f72ec582282f785312b427b Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Thu, 22 Aug 2019 12:55:40 +0200 Subject: [PATCH] Autotest: Fix warning about type mismatch Change-Id: I1bb518292da73861745646ae13f8f1feab541fe9 Reviewed-by: Christian Stenger --- 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 85f459ea019..d896b56a3cc 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, unsigned line) + const QString &filePath, int 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 551d0865a21..f99db4ce544 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, - unsigned line); + int line); TestTreeItem *unnamedQuickTests() const; };