summaryrefslogtreecommitdiffstats
path: root/src/gui/image/qiconloader.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2020-05-25 14:25:06 +0200
committerLars Knoll <lars.knoll@qt.io>2020-06-11 02:51:03 +0200
commitd984adac68a70c0a23b411b103a4c8d777d6fb0d (patch)
treea519c261a12ef7cb98a3f29830ab53deb8cb9196 /src/gui/image/qiconloader.cpp
parent82a0f4a193367fc661c95a832fbec74f8e9a76d1 (diff)
Port QtGui from QStringRef to QStringView
Task-number: QTBUG-84319 Change-Id: I1761096fbcc9421a013cf73f831a2a2ba0c18006 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'src/gui/image/qiconloader.cpp')
-rw-r--r--src/gui/image/qiconloader.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/image/qiconloader.cpp b/src/gui/image/qiconloader.cpp
index ac7a6864f8..00982ca331 100644
--- a/src/gui/image/qiconloader.cpp
+++ b/src/gui/image/qiconloader.cpp
@@ -217,7 +217,7 @@ class QIconCacheGtkReader
{
public:
explicit QIconCacheGtkReader(const QString &themeDir);
- QVector<const char *> lookup(const QStringRef &);
+ QVector<const char *> lookup(QStringView);
bool isValid() const { return m_isValid; }
private:
QFile m_file;
@@ -290,7 +290,7 @@ static quint32 icon_name_hash(const char *p)
with this name is present. The char* are pointers to the mapped data.
For example, this would return { "32x32/apps", "24x24/apps" , ... }
*/
-QVector<const char *> QIconCacheGtkReader::lookup(const QStringRef &name)
+QVector<const char *> QIconCacheGtkReader::lookup(QStringView name)
{
QVector<const char *> ret;
if (!isValid() || name.isEmpty())
@@ -443,7 +443,7 @@ QThemeIconInfo QIconLoader::findIconHelper(const QString &themeName,
const QStringList contentDirs = theme.contentDirs();
- QStringRef iconNameFallback(&iconName);
+ QStringView iconNameFallback(iconName);
// Iterate through all icon's fallbacks in current theme
while (info.entries.isEmpty()) {