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
No known key found for this signature in database
GPG key ID: 1C400DA5602DE62E

View file

@ -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())
{