Simplify conversion from/to Result::Type

Additionally rename enum value UNKNOWN to INVALID.

Change-Id: I08dc4e371afb576db10716eda00ff6368f9d2311
Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
This commit is contained in:
Christian Stenger
2015-09-23 07:14:25 +02:00
parent 55f3dcb6b5
commit 17fbe92100
4 changed files with 24 additions and 67 deletions

View File

@@ -195,7 +195,7 @@ void TestXmlOutputReader::processOutput()
static QString className;
static QString testCase;
static QString dataTag;
static Result::Type result = Result::UNKNOWN;
static Result::Type result = Result::INVALID;
static QString description;
static QString file;
static int lineNumber = 0;
@@ -223,7 +223,7 @@ void TestXmlOutputReader::processOutput()
description = QString();
duration = QString();
file = QString();
result = Result::UNKNOWN;
result = Result::INVALID;
lineNumber = 0;
readingDescription = false;
testResultCreated(new TestResult(QString(), QString(), QString(), Result::MESSAGE_CURRENT_TEST,