diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2019-07-10 18:48:34 +0200 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2019-07-10 19:32:20 +0200 |
commit | 38f88ebfebeccc1a6c2b41f885b2a6a8fa74a447 (patch) | |
tree | ea41f372d11b04919b50e95bfcd66a2a62fffe6f /tools/qscxmlc/qscxmlc.cpp | |
parent | b63320b5eb7296699b3ff77bf4befe73e908e04e (diff) |
Bump Qt version to Qt 6
Also fix usages of text stream operators.
Change-Id: I53cf87bb4bb055d56f2332d7737f205ec9560774
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'tools/qscxmlc/qscxmlc.cpp')
-rw-r--r-- | tools/qscxmlc/qscxmlc.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/qscxmlc/qscxmlc.cpp b/tools/qscxmlc/qscxmlc.cpp index ce45ed0..d83e786 100644 --- a/tools/qscxmlc/qscxmlc.cpp +++ b/tools/qscxmlc/qscxmlc.cpp @@ -57,13 +57,13 @@ int write(TranslationUnit *tu) QFile outH(tu->outHFileName); if (!outH.open(QFile::WriteOnly)) { - errs << QStringLiteral("Error: cannot open '%1': %2").arg(outH.fileName(), outH.errorString()) << endl; + errs << QStringLiteral("Error: cannot open '%1': %2").arg(outH.fileName(), outH.errorString()) << Qt::endl; return CannotOpenOutputHeaderFileError; } QFile outCpp(tu->outCppFileName); if (!outCpp.open(QFile::WriteOnly)) { - errs << QStringLiteral("Error: cannot open '%1': %2").arg(outCpp.fileName(), outCpp.errorString()) << endl; + errs << QStringLiteral("Error: cannot open '%1': %2").arg(outCpp.fileName(), outCpp.errorString()) << Qt::endl; return CannotOpenOutputCppFileError; } @@ -139,13 +139,13 @@ int run(const QStringList &arguments) const QStringList inputFiles = cmdParser.positionalArguments(); if (inputFiles.count() < 1) { - errs << QCoreApplication::translate("main", "Error: no input file.") << endl; + errs << QCoreApplication::translate("main", "Error: no input file.") << Qt::endl; cmdParser.showHelp(NoInputFilesError); } if (inputFiles.count() > 1) { errs << QCoreApplication::translate("main", "Error: unexpected argument(s): %1") - .arg(inputFiles.mid(1).join(QLatin1Char(' '))) << endl; + .arg(inputFiles.mid(1).join(QLatin1Char(' '))) << Qt::endl; cmdParser.showHelp(NoInputFilesError); } @@ -180,7 +180,7 @@ int run(const QStringList &arguments) if (!compiler.errors().isEmpty()) { const auto errors = compiler.errors(); for (const QScxmlError &error : errors) { - errs << error.toString() << endl; + errs << error.toString() << Qt::endl; } return ParseError; } @@ -190,7 +190,7 @@ int run(const QStringList &arguments) Q_ASSERT(!compiler.errors().isEmpty()); const auto errors = compiler.errors(); for (const QScxmlError &error : errors) { - errs << error.toString() << endl; + errs << error.toString() << Qt::endl; } return ScxmlVerificationError; } |