summaryrefslogtreecommitdiffstats
path: root/src/linguist/lupdate/qdeclarative.cpp
diff options
context:
space:
mode:
authorKarsten Heimrich <karsten.heimrich@qt.io>2020-06-11 14:10:22 +0200
committerKarsten Heimrich <karsten.heimrich@qt.io>2020-06-15 12:39:22 +0200
commit6f5d0c8d5c373c92dbabd495508e223f9f9fd1a7 (patch)
tree5633ab89b4941dc4beacc5fd47c49b7211e26711 /src/linguist/lupdate/qdeclarative.cpp
parentd98ed1aaedf4a188b482a0d886195bf4cbe44c60 (diff)
Port QtTools from QStringRef to QStringView
Task-number: QTBUG-84319 Change-Id: Idb5a41172ea38b2f4edf385d67c1cdc2968a8d8c Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'src/linguist/lupdate/qdeclarative.cpp')
-rw-r--r--src/linguist/lupdate/qdeclarative.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/linguist/lupdate/qdeclarative.cpp b/src/linguist/lupdate/qdeclarative.cpp
index 3cee00266..903641f9f 100644
--- a/src/linguist/lupdate/qdeclarative.cpp
+++ b/src/linguist/lupdate/qdeclarative.cpp
@@ -344,7 +344,7 @@ void FindTrCalls::processComment(const SourceLocation &loc)
if (!loc.length)
return;
- const QStringRef commentStr = engine->midRef(loc.begin(), loc.length);
+ const QStringView commentStr = engine->midRef(loc.begin(), loc.length);
const QChar *chars = commentStr.constData();
const int length = commentStr.length();