mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Don't try to pass QString to report_error()
No idea why the compiler on my system didn't complain about this. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
f554c2d16c
commit
08f8eb6eb5
1 changed files with 4 additions and 4 deletions
|
@ -67,7 +67,7 @@ void ReverseGeoLookupThread::run() {
|
|||
if(timer.isActive()) {
|
||||
timer.stop();
|
||||
if(reply->error() > 0) {
|
||||
report_error("got error accessing geonames.org: %s", reply->errorString());
|
||||
report_error("got error accessing geonames.org: %s", qPrintable(reply->errorString()));
|
||||
goto clear_reply;
|
||||
}
|
||||
int v = reply->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt();
|
||||
|
@ -77,7 +77,7 @@ void ReverseGeoLookupThread::run() {
|
|||
QJsonParseError errorObject;
|
||||
QJsonDocument jsonDoc = QJsonDocument::fromJson(fullReply, &errorObject);
|
||||
if (errorObject.error != QJsonParseError::NoError) {
|
||||
report_error("error parsing geonames.org response: %s", errorObject.errorString());
|
||||
report_error("error parsing geonames.org response: %s", qPrintable(errorObject.errorString()));
|
||||
goto clear_reply;
|
||||
}
|
||||
QJsonObject obj = jsonDoc.object();
|
||||
|
@ -118,7 +118,7 @@ void ReverseGeoLookupThread::run() {
|
|||
if(timer.isActive()) {
|
||||
timer.stop();
|
||||
if(reply->error() > 0) {
|
||||
report_error("got error accessing oceans API of geonames.org: %s", reply->errorString());
|
||||
report_error("got error accessing oceans API of geonames.org: %s", qPrintable(reply->errorString()));
|
||||
goto clear_reply;
|
||||
}
|
||||
int v = reply->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt();
|
||||
|
@ -128,7 +128,7 @@ void ReverseGeoLookupThread::run() {
|
|||
QJsonParseError errorObject;
|
||||
QJsonDocument jsonDoc = QJsonDocument::fromJson(fullReply, &errorObject);
|
||||
if (errorObject.error != QJsonParseError::NoError) {
|
||||
report_error("error parsing geonames.org response: %s", errorObject.errorString());
|
||||
report_error("error parsing geonames.org response: %s", qPrintable(errorObject.errorString()));
|
||||
goto clear_reply;
|
||||
}
|
||||
QJsonObject obj = jsonDoc.object();
|
||||
|
|
Loading…
Add table
Reference in a new issue