summaryrefslogtreecommitdiff
path: root/src/client/qwaylandwindow.cpp
diff options
context:
space:
mode:
authorKarsten Heimrich <karsten.heimrich@qt.io>2020-06-11 13:41:55 +0200
committerKarsten Heimrich <karsten.heimrich@qt.io>2020-06-11 16:55:37 +0200
commit187ec2e0929ee8e588195332c61810bd0c0fe75b (patch)
tree04d53aa8e54577fbb7767f337edf9146fe5fcf6d /src/client/qwaylandwindow.cpp
parent634269c4c0f3f0772506ae1bb15be5e814e43454 (diff)
downloadqtwayland-187ec2e0929ee8e588195332c61810bd0c0fe75b.tar.gz
Qt6: Port QtWayland from QStringRef to QStringView
Task-number: QTBUG-84319 Change-Id: I5dc2f4506c149e5f2793cd7cab083278b93a980e Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/client/qwaylandwindow.cpp')
-rw-r--r--src/client/qwaylandwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/qwaylandwindow.cpp b/src/client/qwaylandwindow.cpp
index fa2a5b74..802be1e0 100644
--- a/src/client/qwaylandwindow.cpp
+++ b/src/client/qwaylandwindow.cpp
@@ -307,7 +307,7 @@ void QWaylandWindow::setWindowTitle(const QString &title)
// three bytes when converted to utf-8 (which is what libwayland uses), so divide by three.
const int maxLength = libwaylandMaxBufferSize / 3 - 100;
- auto truncated = QStringRef(&formatted).left(maxLength);
+ auto truncated = QStringView{formatted}.left(maxLength);
if (truncated.length() < formatted.length()) {
qCWarning(lcQpaWayland) << "Window titles longer than" << maxLength << "characters are not supported."
<< "Truncating window title (from" << formatted.length() << "chars)";