diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2019-07-11 11:31:44 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2019-12-20 09:57:06 +0100 |
commit | a3ab5864425532fcfe44979381db7ce772ea22e2 (patch) | |
tree | ffc09d05e0c5a2d5fcbb6d8f3cf789998b643ee4 /tools | |
parent | 3839255e1c11c78046896a37948cda849b0c5bc8 (diff) | |
download | qtxmlpatterns-a3ab5864425532fcfe44979381db7ce772ea22e2.tar.gz |
Bump Qt version to Qt 6
Also fix usage of text stream operators.
Change-Id: I6c3ca0fe501f0565ecae5782a52cc70e1a4b6c04
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
(cherry picked from commit 2fc7a39180270c7551e99b918e827a93507e32a0)
Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/xmlpatterns/qapplicationargumentparser.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/xmlpatterns/qapplicationargumentparser.cpp b/tools/xmlpatterns/qapplicationargumentparser.cpp index 8aaae31..ce73485 100644 --- a/tools/xmlpatterns/qapplicationargumentparser.cpp +++ b/tools/xmlpatterns/qapplicationargumentparser.cpp @@ -245,7 +245,7 @@ bool QApplicationArgumentParserPrivate::error(const QString &message) bool QApplicationArgumentParserPrivate::errorMessage(const QString &message) { QTextStream out(stderr, QIODevice::WriteOnly); - out << message << endl; + out << message << Qt::endl; return false; } @@ -290,7 +290,7 @@ void QApplicationArgumentParserPrivate::displayVersion() const QTextStream out(stderr); out << tr("%1 version %2 using Qt %3").arg(QCoreApplication::applicationName(), applicationVersion, QString::fromLatin1(qVersion())) - << endl; + << Qt::endl; } void QApplicationArgumentParserPrivate::displayHelp() const @@ -356,16 +356,16 @@ void QApplicationArgumentParserPrivate::displayHelp() const } QTextStream out(stderr); - out << endl + out << Qt::endl << QString(IndentPadding, QLatin1Char(' ')) << QCoreApplication::applicationName() << QLatin1String(" -- ") << applicationDescription - << endl; + << Qt::endl; // TODO synopsis /* One extra so we get some space between the overview and the options. */ - out << endl; + out << Qt::endl; const int indentWidth = maxWidth + 3; @@ -408,7 +408,7 @@ void QApplicationArgumentParserPrivate::displayHelp() const out << prolog << lineWrap(at.description(), indentWidth, LineWrapAt) - << endl; + << Qt::endl; } } |