aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken2/ApiExtractor/abstractmetabuilder.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2020-08-19 09:24:30 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2020-08-19 09:58:38 +0000
commitc629b254db791db99677cce8c80490ff47486e80 (patch)
tree9362e01053275ac8c638c055ce6a2a145748bb5c /sources/shiboken2/ApiExtractor/abstractmetabuilder.cpp
parentac8e4f0d05aef867c9ce5c8fdb7337b04f8c64dc (diff)
Start porting away from QStringRef
QStringRef will be replaced by QStringView. Remove most usages or use auto. This will require a 2nd cleanup removing its usages from the QXmlStreamReader code once this has landed in qtbase. Task-number: QTBUG-84319 Task-number: PYSIDE-1339 Task-number: PYSIDE-904 Change-Id: I2885df70d5f883bcad7bb3a31618fc1d63116df5 Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources/shiboken2/ApiExtractor/abstractmetabuilder.cpp')
-rw-r--r--sources/shiboken2/ApiExtractor/abstractmetabuilder.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/sources/shiboken2/ApiExtractor/abstractmetabuilder.cpp b/sources/shiboken2/ApiExtractor/abstractmetabuilder.cpp
index f9e34ba5a..b3159443e 100644
--- a/sources/shiboken2/ApiExtractor/abstractmetabuilder.cpp
+++ b/sources/shiboken2/ApiExtractor/abstractmetabuilder.cpp
@@ -2809,7 +2809,8 @@ QPropertySpec *AbstractMetaBuilderPrivate::parseQ_Property(AbstractMetaClass *me
// Q_PROPERTY(QString objectName READ objectName WRITE setObjectName NOTIFY objectNameChanged)
- auto propertyTokens = declaration.splitRef(QLatin1Char(' '), Qt::SkipEmptyParts);
+ auto propertyTokens = QStringView{declaration}.split(QLatin1Char(' '),
+ Qt::SkipEmptyParts);
if (propertyTokens.size() < 4) {
*errorMessage = QLatin1String("Insufficient number of tokens");
return nullptr;