summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2020-02-25 15:38:59 +0100
committerEdward Welbourne <edward.welbourne@qt.io>2020-03-02 15:57:40 +0100
commit61ed1a9e09fe54b0d52afbf865de03c8c4eaed82 (patch)
tree6b527ac4923ad930673a1bc09eab03f50794b9b7 /tests
parent78eac0c12128ed1884b0c35e1191a9646df60a3d (diff)
Use Qt::SplitBehavior in preference to QString::SplitBehavior
The Qt version was added in 5.14 "for use as eventual replacement for QString::SplitBehavior." Move another step closer to that goal. Change-Id: I022d0c59b1fce62378a89c8f4087aaf99d3aac8c Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/parser/tst_parser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/parser/tst_parser.cpp b/tests/auto/parser/tst_parser.cpp
index 22b9059..203dfaa 100644
--- a/tests/auto/parser/tst_parser.cpp
+++ b/tests/auto/parser/tst_parser.cpp
@@ -65,7 +65,7 @@ void tst_Parser::error()
QFile errorFile(errorFileName);
errorFile.open(QIODevice::ReadOnly | QIODevice::Text);
const QStringList expectedErrors =
- QString::fromUtf8(errorFile.readAll()).split('\n', QString::SkipEmptyParts);
+ QString::fromUtf8(errorFile.readAll()).split('\n', Qt::SkipEmptyParts);
if (!expectedErrors.isEmpty())
QTest::ignoreMessage(QtWarningMsg, "SCXML document has errors");