summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-07-02 07:17:51 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-07-02 07:17:51 -0700
commit08f8eb6eb51f2855f98c1b351127691dce837894 (patch)
treeb032af8eb7efd4de187303405dcd2d208718831e
parentf554c2d16cb5816b6b1a97b0349488bc70b512b0 (diff)
downloadsubsurface-08f8eb6eb51f2855f98c1b351127691dce837894.tar.gz
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>
-rw-r--r--divesitehelpers.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/divesitehelpers.cpp b/divesitehelpers.cpp
index d635969da..dae47e013 100644
--- a/divesitehelpers.cpp
+++ b/divesitehelpers.cpp
@@ -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();