diff options
author | Sona Kurazyan <sona.kurazyan@qt.io> | 2022-04-11 14:04:17 +0200 |
---|---|---|
committer | Sona Kurazyan <sona.kurazyan@qt.io> | 2022-04-13 18:34:15 +0200 |
commit | a5b9600356cb8941a2d9685975b2454837b5e6ed (patch) | |
tree | efecf045643824fe74d088d4b8bb8302b014bf96 /src/gui/itemmodels/qfilesystemmodel_p.h | |
parent | 2e29f55f76e49c1fbffd2af51ec19d59b87f0e72 (diff) |
QtGui: stop using QLatin1Char constructor for creating char literals
Required for porting away from QLatin1Char/QLatin1String in scope of
QTBUG-98434.
Change-Id: I308d86cefcbfd126929b68f9a853d420840c965f
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Diffstat (limited to 'src/gui/itemmodels/qfilesystemmodel_p.h')
-rw-r--r-- | src/gui/itemmodels/qfilesystemmodel_p.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/itemmodels/qfilesystemmodel_p.h b/src/gui/itemmodels/qfilesystemmodel_p.h index 70468460e8..5160a826c0 100644 --- a/src/gui/itemmodels/qfilesystemmodel_p.h +++ b/src/gui/itemmodels/qfilesystemmodel_p.h @@ -182,10 +182,10 @@ public: for (QFileSystemNode *child : qAsConst(children)) { //On windows the root (My computer) has no path so we don't want to add a / for nothing (e.g. /C:/) if (!path.isEmpty()) { - if (path.endsWith(QLatin1Char('/'))) + if (path.endsWith(u'/')) child->updateIcon(iconProvider, path + child->fileName); else - child->updateIcon(iconProvider, path + QLatin1Char('/') + child->fileName); + child->updateIcon(iconProvider, path + u'/' + child->fileName); } else child->updateIcon(iconProvider, child->fileName); } @@ -197,10 +197,10 @@ public: for (QFileSystemNode *child : qAsConst(children)) { //On windows the root (My computer) has no path so we don't want to add a / for nothing (e.g. /C:/) if (!path.isEmpty()) { - if (path.endsWith(QLatin1Char('/'))) + if (path.endsWith(u'/')) child->retranslateStrings(iconProvider, path + child->fileName); else - child->retranslateStrings(iconProvider, path + QLatin1Char('/') + child->fileName); + child->retranslateStrings(iconProvider, path + u'/' + child->fileName); } else child->retranslateStrings(iconProvider, child->fileName); } |