diff options
author | Lars Knoll <lars.knoll@qt.io> | 2020-05-22 17:08:38 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2020-06-11 02:50:49 +0200 |
commit | 82a0f4a193367fc661c95a832fbec74f8e9a76d1 (patch) | |
tree | 7cc989e8f9c55f782ac67c2f40f944aff1d8ab77 /src/corelib/mimetypes/qmimetype.cpp | |
parent | ecacb3c62f94d2b671a252aa177264f41f6869ea (diff) |
Port mimetypes away from QStringRef
Task-number: QTBUG-84319
Change-Id: I2bed1149df7f11495fd9dc3577828c0790b17dab
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'src/corelib/mimetypes/qmimetype.cpp')
-rw-r--r-- | src/corelib/mimetypes/qmimetype.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/mimetypes/qmimetype.cpp b/src/corelib/mimetypes/qmimetype.cpp index 17a6effe03..3c10360561 100644 --- a/src/corelib/mimetypes/qmimetype.cpp +++ b/src/corelib/mimetypes/qmimetype.cpp @@ -302,7 +302,7 @@ QString QMimeType::genericIconName() const // media type (e.g. "video" in "video/ogg") and appending "-x-generic" // (i.e. "video-x-generic" in the previous example). const QString group = name(); - QStringRef groupRef(&group); + QStringView groupRef(group); const int slashindex = groupRef.indexOf(QLatin1Char('/')); if (slashindex != -1) groupRef = groupRef.left(slashindex); |