mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 08:08:42 +00:00
Fix warning: reuse the abandoned statusCode local variable
This commit is contained in:
committed by
Alejandro Martinez
parent
9d7b07bf94
commit
175da3f6bf
@@ -132,7 +132,7 @@ CyclingAnalytics::readdir(QString path, QStringList &errors, QDateTime, QDateTim
|
||||
QTimer::singleShot(30000,&loop, SLOT(quit())); // timeout after 30 seconds
|
||||
|
||||
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 (reply->error() == 0) {
|
||||
|
||||
@@ -200,7 +200,7 @@ Xert::readdir(QString path, QStringList &errors, QDateTime from, QDateTime to)
|
||||
loop.exec();
|
||||
|
||||
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 (reply->error() == 0) {
|
||||
@@ -308,7 +308,7 @@ Xert::readActivityDetail(QString path, bool withSessionData)
|
||||
loop.exec();
|
||||
|
||||
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 (reply->error() == 0) {
|
||||
|
||||
Reference in New Issue
Block a user