mirror of
https://invent.kde.org/system/dolphin
synced 2024-08-22 01:40:02 +00:00
Use rightRef() instead of right()
As recommended by the clazy qstring-ref check.
This commit is contained in:
parent
4913493551
commit
d0503ae8e0
|
@ -497,7 +497,7 @@ void KFileItemModelRolesUpdater::slotGotPreview(const KFileItem& item, const QPi
|
|||
|
||||
const QString mimeType = item.mimetype();
|
||||
const int slashIndex = mimeType.indexOf(QLatin1Char('/'));
|
||||
const bool isFontPreview = mimeType.right(slashIndex).contains(QLatin1String("font"));
|
||||
const bool isFontPreview = mimeType.rightRef(slashIndex).contains(QLatin1String("font"));
|
||||
const bool isFolderPreview = item.isDir();
|
||||
const bool isWindowsExePreview = mimeType == QLatin1String("application/x-ms-dos-executable") ||
|
||||
mimeType == QLatin1String("application/x-msdownload");
|
||||
|
|
Loading…
Reference in a new issue