Skip to content

Commit 956d49c

Browse files
committed
refactor(propagateupload): const bytesSent and structured binding
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
1 parent dd105e9 commit 956d49c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/libsync/propagateupload.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ void PUTFileJob::start()
7171
qCWarning(lcPutJob) << " Network error: " << reply()->errorString();
7272
}
7373

74-
connect(reply(), &QNetworkReply::uploadProgress, this, [requestID] (qint64 bytesSent, const qint64 bytesTotal) {
74+
connect(reply(), &QNetworkReply::uploadProgress, this, [requestID] (const qint64 bytesSent, const qint64 bytesTotal) {
7575
qCDebug(lcPutJob()) << requestID << "upload progress" << bytesSent << bytesTotal;
7676
});
7777

@@ -114,9 +114,9 @@ bool PollJob::finished()
114114
_item->_requestId = requestId();
115115
_item->_status = classifyError(err, _item->_httpErrorCode);
116116
_item->_errorString = errorString();
117-
const auto exceptionParsed = getExceptionFromReply(reply());
118-
_item->_errorExceptionName = exceptionParsed.first;
119-
_item->_errorExceptionMessage = exceptionParsed.second;
117+
const auto [exceptionName, exceptionMessage] = getExceptionFromReply(reply());
118+
_item->_errorExceptionName = exceptionName;
119+
_item->_errorExceptionMessage = exceptionMessage;
120120

121121
if (_item->_status == SyncFileItem::FatalError || _item->_httpErrorCode >= 400) {
122122
if (_item->_status != SyncFileItem::FatalError

0 commit comments

Comments
 (0)