Commit 568ac897 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Make it compile against qt5.15. SkipEmptyParts is part of Qt::.

parent 08c10464
Pipeline #15966 failed with stage
in 3 minutes and 27 seconds
......@@ -154,7 +154,11 @@ void Parser::addError(const QString& s, const Token& t, int code)
void Parser::printTree() const
{
const char* prefix = m_testing ? "NTR> " : "";
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
foreach (const QString &line, rootNode->toString().split('\n', QString::SkipEmptyParts)) {
#else
foreach (const QString &line, rootNode->toString().split('\n', Qt::SkipEmptyParts)) {
#endif
qDebug() << prefix << qPrintable(line.trimmed());
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment