Fix warning: reuse the abandoned statusCode local variable

This commit is contained in:
Dmytro Maslenko
2025-07-25 20:25:20 -07:00
committed by Alejandro Martinez
parent 9d7b07bf94
commit 175da3f6bf
2 changed files with 3 additions and 3 deletions

View File

@@ -132,7 +132,7 @@ CyclingAnalytics::readdir(QString path, QStringList &errors, QDateTime, QDateTim
QTimer::singleShot(30000,&loop, SLOT(quit())); // timeout after 30 seconds QTimer::singleShot(30000,&loop, SLOT(quit())); // timeout after 30 seconds
int statusCode = reply->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt(); int statusCode = reply->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt();
printd("fetch response: %d: %s\n", reply->error(), reply->errorString().toStdString().c_str()); printd("fetch response: status=%d, error=%d: %s\n", statusCode, reply->error(), reply->errorString().toStdString().c_str());
// if successful, lets unpack // if successful, lets unpack
if (reply->error() == 0) { if (reply->error() == 0) {

View File

@@ -200,7 +200,7 @@ Xert::readdir(QString path, QStringList &errors, QDateTime from, QDateTime to)
loop.exec(); loop.exec();
int statusCode = reply->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt(); int statusCode = reply->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt();
printd("fetch response: %d: %s\n", reply->error(), reply->errorString().toStdString().c_str()); printd("fetch response: status=%d, error=%d: %s\n", statusCode, reply->error(), reply->errorString().toStdString().c_str());
// if successful, lets unpack // if successful, lets unpack
if (reply->error() == 0) { if (reply->error() == 0) {
@@ -308,7 +308,7 @@ Xert::readActivityDetail(QString path, bool withSessionData)
loop.exec(); loop.exec();
int statusCode = reply->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt(); int statusCode = reply->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt();
printd("fetch response: %d: %s\n", reply->error(), reply->errorString().toStdString().c_str()); printd("fetch response: status=%d, error=%d: %s\n", statusCode, reply->error(), reply->errorString().toStdString().c_str());
// if successful, lets unpack // if successful, lets unpack
if (reply->error() == 0) { if (reply->error() == 0) {