summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qinternalmimedata.cpp
diff options
context:
space:
mode:
authorAhmad Samir <a.samirh78@gmail.com>2023-04-23 14:09:02 +0200
committerAhmad Samir <a.samirh78@gmail.com>2023-04-25 06:15:36 +0200
commit4538bbf4a68a80f09cad8749a2b05bfb8ce4290c (patch)
tree85574e51d5fe2defbcb6e5025b26d318cd3f5ab1 /src/gui/kernel/qinternalmimedata.cpp
parentd8a688adf01e2750fd4012de4b8966901630f574 (diff)
Misc.: Fix some narrowing integral conversion warnings
Drive-by change: use QByteArrayView instead of allocating a QByteArray. Change-Id: Iaf7acbbdb4efbb101b73b30061ce38dd1fa99ca3 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/gui/kernel/qinternalmimedata.cpp')
-rw-r--r--src/gui/kernel/qinternalmimedata.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/kernel/qinternalmimedata.cpp b/src/gui/kernel/qinternalmimedata.cpp
index 9fd7f89a0f..d33402703e 100644
--- a/src/gui/kernel/qinternalmimedata.cpp
+++ b/src/gui/kernel/qinternalmimedata.cpp
@@ -20,7 +20,7 @@ static QStringList imageMimeFormats(const QList<QByteArray> &imageFormats)
formats.append("image/"_L1 + QLatin1StringView(format.toLower()));
//put png at the front because it is best
- int pngIndex = formats.indexOf("image/png"_L1);
+ const qsizetype pngIndex = formats.indexOf("image/png"_L1);
if (pngIndex != -1 && pngIndex != 0)
formats.move(pngIndex, 0);