From 205122ee682f15a9df1308ddbcd6e655aeab03ba Mon Sep 17 00:00:00 2001 From: Mm2PL Date: Thu, 26 Sep 2019 14:24:41 +0200 Subject: [PATCH] Avoid copying a QUrl in upload() when pasting files from the filesystem. --- src/util/NuulsUploader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/NuulsUploader.cpp b/src/util/NuulsUploader.cpp index 77c476e04..05ae31b49 100644 --- a/src/util/NuulsUploader.cpp +++ b/src/util/NuulsUploader.cpp @@ -104,7 +104,7 @@ void upload(const QMimeData *source, ChannelPtr channel, } else if (source->hasUrls()) { - for (QUrl path : source->urls()) + for (const QUrl &path : source->urls()) { if (getImageFileFormat(path.toLocalFile()) != QString()) {