From 9a55c695c7ecb8a2154661462255423a20ef4097 Mon Sep 17 00:00:00 2001 From: Sona Kurazyan Date: Mon, 11 Apr 2022 17:27:52 +0200 Subject: QtGui: replace remaining uses of QLatin1String with QLatin1StringView Task-number: QTBUG-98434 Change-Id: I98c27030c783f968cbf38dc966ce486dc366b302 Reviewed-by: Edward Welbourne --- src/gui/itemmodels/qfilesystemmodel_p.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/itemmodels/qfilesystemmodel_p.h') diff --git a/src/gui/itemmodels/qfilesystemmodel_p.h b/src/gui/itemmodels/qfilesystemmodel_p.h index 5160a826c0..8250958297 100644 --- a/src/gui/itemmodels/qfilesystemmodel_p.h +++ b/src/gui/itemmodels/qfilesystemmodel_p.h @@ -116,7 +116,7 @@ public: #endif inline qint64 size() const { if (info && !info->isDir()) return info->size(); return 0; } - inline QString type() const { if (info) return info->displayType; return QLatin1String(""); } + inline QString type() const { if (info) return info->displayType; return QLatin1StringView(""); } inline QDateTime lastModified() const { if (info) return info->lastModified(); return QDateTime(); } inline QFile::Permissions permissions() const { if (info) return info->permissions(); return { }; } inline bool isReadable() const { return ((permissions() & QFile::ReadUser) != 0); } -- cgit v1.2.3