diff options
author | Erik Verbruggen <erik.verbruggen@digia.com> | 2013-04-18 14:10:36 +0200 |
---|---|---|
committer | Nikolai Kosjar <nikolai.kosjar@digia.com> | 2013-04-18 15:50:00 +0200 |
commit | 63a04e0c1550cc112f7c46f148a5a5c44af06a32 (patch) | |
tree | b6e8f96b519fe995f67a2316c06f591ba41eade3 /tests | |
parent | d77883c16a5327bd21a77f1e22f132c890ab4787 (diff) | |
download | qt-creator-63a04e0c1550cc112f7c46f148a5a5c44af06a32.tar.gz |
C++: replace Q_UNREACHABLE by QTest::qFail.
Q_UNREACHABLE was introduced in Qt5, so using it impossible to compile
the tests with Qt4.
Change-Id: I0ed23ad9390b1428513a7a0c975dd8fb72efb001
Reviewed-by: Przemyslaw Gorszkowski <pgorszkowski@gmail.com>
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/cplusplus/checksymbols/tst_checksymbols.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/cplusplus/checksymbols/tst_checksymbols.cpp b/tests/auto/cplusplus/checksymbols/tst_checksymbols.cpp index 2208f768b9..25673a7f29 100644 --- a/tests/auto/cplusplus/checksymbols/tst_checksymbols.cpp +++ b/tests/auto/cplusplus/checksymbols/tst_checksymbols.cpp @@ -75,7 +75,8 @@ static QString useKindToString(UseKind useKind) case CppHighlightingSupport::PseudoKeywordUse: return QLatin1String("CppHighlightingSupport::PseudoKeywordUse"); default: - Q_UNREACHABLE(); + QTest::qFail("Unknown UseKind", __FILE__, __LINE__); + return QLatin1String("Unknown UseKind"); } } |