diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2019-07-25 18:37:13 +0200 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2019-07-25 20:43:12 +0200 |
commit | 8e79ec32f81aa65ac9ce1ad42ad1ee5452d42341 (patch) | |
tree | 3a35ca7f2954a994d4c4663b89ccc9d56c578eb3 | |
parent | 65e3020ba826a26b1ef4c233ec58df59d8f4276c (diff) |
Fix tests when building with Qt 6
Change-Id: I5cf4c75337f1bac02f170b845561ba3ce293ef02
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
-rw-r--r-- | tests/auto/repparser/tst_parser.cpp | 70 |
1 files changed, 35 insertions, 35 deletions
diff --git a/tests/auto/repparser/tst_parser.cpp b/tests/auto/repparser/tst_parser.cpp index b749a15..e082a1a 100644 --- a/tests/auto/repparser/tst_parser.cpp +++ b/tests/auto/repparser/tst_parser.cpp @@ -82,7 +82,7 @@ void tst_Parser::testBasic() QTemporaryFile file; file.open(); QTextStream stream(&file); - stream << content << endl; + stream << content << Qt::endl; file.seek(0); RepParser parser(file); @@ -142,10 +142,10 @@ void tst_Parser::testProperties() QTemporaryFile file; file.open(); QTextStream stream(&file); - stream << "class TestClass" << endl; - stream << "{" << endl; - stream << propertyDeclaration << endl; - stream << "};" << endl; + stream << "class TestClass" << Qt::endl; + stream << "{" << Qt::endl; + stream << propertyDeclaration << Qt::endl; + stream << "};" << Qt::endl; file.seek(0); RepParser parser(file); @@ -195,10 +195,10 @@ void tst_Parser::testSlots() QTemporaryFile file; file.open(); QTextStream stream(&file); - stream << "class TestClass" << endl; - stream << "{" << endl; - stream << slotDeclaration << endl; - stream << "};" << endl; + stream << "class TestClass" << Qt::endl; + stream << "{" << Qt::endl; + stream << slotDeclaration << Qt::endl; + stream << "};" << Qt::endl; file.seek(0); if (voidWarning) @@ -237,10 +237,10 @@ void tst_Parser::testSignals() QTemporaryFile file; file.open(); QTextStream stream(&file); - stream << "class TestClass" << endl; - stream << "{" << endl; - stream << signalDeclaration << endl; - stream << "};" << endl; + stream << "class TestClass" << Qt::endl; + stream << "{" << Qt::endl; + stream << signalDeclaration << Qt::endl; + stream << "};" << Qt::endl; file.seek(0); RepParser parser(file); @@ -283,10 +283,10 @@ void tst_Parser::testPods() QTemporaryFile file; file.open(); QTextStream stream(&file); - stream << podsdeclaration << endl; - stream << "class TestClass" << endl; - stream << "{" << endl; - stream << "};" << endl; + stream << podsdeclaration << Qt::endl; + stream << "class TestClass" << Qt::endl; + stream << "{" << Qt::endl; + stream << "};" << Qt::endl; file.seek(0); RepParser parser(file); @@ -347,12 +347,12 @@ void tst_Parser::testEnums() file.open(); QTextStream stream(&file); if (!inclass) - stream << enumdeclaration << endl; - stream << "class TestClass" << endl; - stream << "{" << endl; + stream << enumdeclaration << Qt::endl; + stream << "class TestClass" << Qt::endl; + stream << "{" << Qt::endl; if (inclass) - stream << enumdeclaration << endl; - stream << "};" << endl; + stream << enumdeclaration << Qt::endl; + stream << "};" << Qt::endl; file.seek(0); RepParser parser(file); @@ -399,10 +399,10 @@ void tst_Parser::testModels() QTemporaryFile file; file.open(); QTextStream stream(&file); - stream << "class TestClass" << endl; - stream << "{" << endl; - stream << modelDeclaration << endl; - stream << "};" << endl; + stream << "class TestClass" << Qt::endl; + stream << "{" << Qt::endl; + stream << modelDeclaration << Qt::endl; + stream << "};" << Qt::endl; file.seek(0); RepParser parser(file); @@ -439,14 +439,14 @@ void tst_Parser::testClasses() QTemporaryFile file; file.open(); QTextStream stream(&file); - stream << "class subObject" << endl; - stream << "{" << endl; - stream << " PROP(int value)" << endl; - stream << "};" << endl; - stream << "class parentObject" << endl; - stream << "{" << endl; - stream << classDeclaration << endl; - stream << "};" << endl; + stream << "class subObject" << Qt::endl; + stream << "{" << Qt::endl; + stream << " PROP(int value)" << Qt::endl; + stream << "};" << Qt::endl; + stream << "class parentObject" << Qt::endl; + stream << "{" << Qt::endl; + stream << classDeclaration << Qt::endl; + stream << "};" << Qt::endl; file.seek(0); RepParser parser(file); @@ -495,7 +495,7 @@ void tst_Parser::testInvalid() QTemporaryFile file; file.open(); QTextStream stream(&file); - stream << content << endl; + stream << content << Qt::endl; file.seek(0); RepParser parser(file); |