diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2020-02-25 15:34:39 +0100 |
---|---|---|
committer | Edward Welbourne <edward.welbourne@qt.io> | 2020-03-02 15:57:32 +0100 |
commit | aa42f80935314623865ba35693d73881f2a6157d (patch) | |
tree | 8fd1f00c261aa12bc6a7f8f7f7a11e2be45ac8b0 | |
parent | ae1e354bec49fa7d57074ec1636b1f0c0f7c5019 (diff) | |
download | qtsvg-aa42f80935314623865ba35693d73881f2a6157d.tar.gz |
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: Ieabf1eeb03b682f06344d0373de036f8f4534042
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
-rw-r--r-- | src/svg/qsvghandler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/svg/qsvghandler.cpp b/src/svg/qsvghandler.cpp index 64a2bdc..68929e3 100644 --- a/src/svg/qsvghandler.cpp +++ b/src/svg/qsvghandler.cpp @@ -2076,7 +2076,7 @@ static void cssStyleLookup(QSvgNode *node, static inline QStringList stringToList(const QString &str) { - QStringList lst = str.split(QLatin1Char(','), QString::SkipEmptyParts); + QStringList lst = str.split(QLatin1Char(','), Qt::SkipEmptyParts); return lst; } @@ -3265,7 +3265,7 @@ static QSvgNode *createSvgNode(QSvgNode *parent, viewBoxStr = viewBoxStr.replace(QLatin1Char('\r'), QLatin1Char(',')); viewBoxStr = viewBoxStr.replace(QLatin1Char('\n'), QLatin1Char(',')); viewBoxStr = viewBoxStr.replace(QLatin1Char('\t'), QLatin1Char(',')); - viewBoxValues = viewBoxStr.split(QLatin1Char(','), QString::SkipEmptyParts); + viewBoxValues = viewBoxStr.split(QLatin1Char(','), Qt::SkipEmptyParts); } if (viewBoxValues.count() == 4) { QString xStr = viewBoxValues.at(0).trimmed(); |