From 08f8eb6eb51f2855f98c1b351127691dce837894 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 2 Jul 2015 07:17:51 -0700 Subject: 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 --- divesitehelpers.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'divesitehelpers.cpp') 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(); -- cgit v1.2.3-70-g09d2