forked from qt-creator/qt-creator
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>
This commit is contained in:
committed by
Nikolai Kosjar
parent
d77883c16a
commit
63a04e0c15
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user