Autotest: Fix warning about type mismatch

Change-Id: I1bb518292da73861745646ae13f8f1feab541fe9
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Christian Kandeler
2019-08-22 12:55:40 +02:00
parent 8cd7a11926
commit 501df95d57
2 changed files with 2 additions and 2 deletions

View File

@@ -456,7 +456,7 @@ TestTreeItem *QuickTestTreeItem::findChildByFileNameAndType(const QString &fileP
} }
TestTreeItem *QuickTestTreeItem::findChildByNameFileAndLine(const QString &name, 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 findFirstLevelChild([name, filePath, line](const TestTreeItem *other) {
return other->filePath() == filePath && other->line() == line && other->name() == name; return other->filePath() == filePath && other->line() == line && other->name() == name;

View File

@@ -60,7 +60,7 @@ private:
TestTreeItem *findChildByFileNameAndType(const QString &filePath, const QString &name, TestTreeItem *findChildByFileNameAndType(const QString &filePath, const QString &name,
Type tType); Type tType);
TestTreeItem *findChildByNameFileAndLine(const QString &name, const QString &filePath, TestTreeItem *findChildByNameFileAndLine(const QString &name, const QString &filePath,
unsigned line); int line);
TestTreeItem *unnamedQuickTests() const; TestTreeItem *unnamedQuickTests() const;
}; };