diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2020-02-25 17:22:09 +0100 |
---|---|---|
committer | Edward Welbourne <edward.welbourne@qt.io> | 2020-02-28 15:37:11 +0100 |
commit | 305ddbeb5ba21e1a976106a2b9fd59252d750c61 (patch) | |
tree | f5f9bde08bf8b12cbf69a6350d807955d8b3a1e2 /tests/manual/lance | |
parent | 26b1cf2bbaa5a847f8b03137f666b7f32b16d843 (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: I399b5ea56e9255e775ca1746632f7421519a6616
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'tests/manual/lance')
-rw-r--r-- | tests/manual/lance/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/manual/lance/main.cpp b/tests/manual/lance/main.cpp index 6dc5e2076a..c8e79f42f0 100644 --- a/tests/manual/lance/main.cpp +++ b/tests/manual/lance/main.cpp @@ -364,7 +364,7 @@ int main(int argc, char **argv) if (file.open(QIODevice::ReadOnly)) { QTextStream textFile(&file); QString script = textFile.readAll(); - content = script.split("\n", QString::SkipEmptyParts); + content = script.split("\n", Qt::SkipEmptyParts); } else { printf("failed to read file: '%s'\n", qPrintable(fileinfo.absoluteFilePath())); continue; |