Skip to content

Port from QStringRef to QStringView, QStringRef is gone in Qt6

Volker Krause requested to merge work/vkrause/qt6-stringref-to-stringview into master

The QStringView::to() methods in Qt5 cause one extra allocation compared to the QStringRef counter-part. As long as we aren't on a hot path this is probably not worth the extra #ifdef though.

There is one more use remaining, but that is code needing closer investigation as it's suspected to use dangling refs/views.

Merge request reports