diff options
author | David Faure <faure@kde.org> | 2020-11-26 22:32:55 +0100 |
---|---|---|
committer | David Faure <faure@kde.org> | 2020-11-26 22:32:55 +0100 |
commit | 17d6e00597fdc1c8f25808735cbc728c4a6b3506 (patch) | |
tree | f27be06719da60306413cfb62d6eb578d69bdf98 /lib/room.cpp | |
parent | 21554bccc39ab2f63869c244ed880686805887cb (diff) | |
download | libquotient-17d6e00597fdc1c8f25808735cbc728c4a6b3506.tar.gz libquotient-17d6e00597fdc1c8f25808735cbc728c4a6b3506.zip |
Enable QT_NO_URL_CAST_FROM_STRING and QT_STRICT_ITERATORS.
* QT_NO_URL_CAST_FROM_STRING makes it clearer where QUrls are created
from QStrings (which incurs a parsing cost).
* QT_STRICT_ITERATORS helps detecting where begin()/end() is used
instead of cbegin()/cend(). KDE developers have verified that
the generated assembly code is identical.
Diffstat (limited to 'lib/room.cpp')
-rw-r--r-- | lib/room.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/room.cpp b/lib/room.cpp index 1af294a7..a309cd24 100644 --- a/lib/room.cpp +++ b/lib/room.cpp @@ -1947,7 +1947,7 @@ void Room::uploadFile(const QString& id, const QUrl& localFilename, }); connect(job, &BaseJob::success, this, [this, id, localFilename, job] { d->fileTransfers[id].status = FileTransferInfo::Completed; - emit fileTransferCompleted(id, localFilename, job->contentUri()); + emit fileTransferCompleted(id, localFilename, QUrl(job->contentUri())); }); connect(job, &BaseJob::failure, this, std::bind(&Private::failedTransfer, d, id, job->errorString())); |