Avoid copying a QUrl in upload() when pasting files from the filesystem.

This commit is contained in:
Mm2PL
2019-09-26 14:24:41 +02:00
parent b55d08df8e
commit 205122ee68
+1 -1
View File
@@ -104,7 +104,7 @@ void upload(const QMimeData *source, ChannelPtr channel,
} }
else if (source->hasUrls()) else if (source->hasUrls())
{ {
for (QUrl path : source->urls()) for (const QUrl &path : source->urls())
{ {
if (getImageFileFormat(path.toLocalFile()) != QString()) if (getImageFileFormat(path.toLocalFile()) != QString())
{ {