From aa42f80935314623865ba35693d73881f2a6157d Mon Sep 17 00:00:00 2001 From: Edward Welbourne Date: Tue, 25 Feb 2020 15:34:39 +0100 Subject: 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 --- src/svg/qsvghandler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/svg/qsvghandler.cpp') 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(); -- cgit v1.2.1