diff options
author | Lars Knoll <lars.knoll@qt.io> | 2020-05-22 16:49:12 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2020-06-10 09:09:15 +0200 |
commit | 7b05e5df18d65f68fd2f089596b178c24f1ebc3a (patch) | |
tree | e564e0d402367ba0a7c48ae5e5b2e5f2c0ef1fb4 /src | |
parent | 6c108ee0c489dbc9c67b3ff1064f08d30c60d0ea (diff) |
Port QLibraryInfo from QStringRef to QStringView
Task-number: QTBUG-84319
Change-Id: I500e43e1918b22d636f11c915967e75223be9ef2
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/corelib/global/qlibraryinfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/global/qlibraryinfo.cpp b/src/corelib/global/qlibraryinfo.cpp index b5164d1062..08aff5fa2a 100644 --- a/src/corelib/global/qlibraryinfo.cpp +++ b/src/corelib/global/qlibraryinfo.cpp @@ -771,7 +771,7 @@ QLibraryInfo::rawLocation(LibraryLocation loc, PathGroup group) int endIndex = ret.indexOf(QLatin1Char(')'), startIndex + 2); if (endIndex < 0) break; - QStringRef envVarName = ret.midRef(startIndex + 2, endIndex - startIndex - 2); + auto envVarName = QStringView{ret}.mid(startIndex + 2, endIndex - startIndex - 2); QString value = QString::fromLocal8Bit(qgetenv(envVarName.toLocal8Bit().constData())); ret.replace(startIndex, endIndex - startIndex + 1, value); startIndex += value.length(); |