aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2019-08-22 12:55:40 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2019-08-22 13:05:36 +0000
commit501df95d57ff2dff8f72ec582282f785312b427b (patch)
tree6ff4614e6f56512a6bb9fab313f0a087264c05aa
parent8cd7a119262c226e575c0beda45a1af71a32baf5 (diff)
Autotest: Fix warning about type mismatch
Change-Id: I1bb518292da73861745646ae13f8f1feab541fe9 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
-rw-r--r--src/plugins/autotest/quick/quicktesttreeitem.cpp2
-rw-r--r--src/plugins/autotest/quick/quicktesttreeitem.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/autotest/quick/quicktesttreeitem.cpp b/src/plugins/autotest/quick/quicktesttreeitem.cpp
index 85f459ea01..d896b56a3c 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 551d0865a2..f99db4ce54 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;
};