Ref T485 Adjust CLogMessage and CStatusMessage call sites to use the new API.

This commit is contained in:
Mat Sutcliffe
2018-12-23 20:12:49 +00:00
parent cba820cbce
commit 225ff81252
118 changed files with 724 additions and 721 deletions

View File

@@ -123,12 +123,12 @@ namespace BlackCore
const QString json(nwReply->readAll().trimmed());
if (json.isEmpty())
{
CLogMessage(this).error("Authentication failed, no response from '%1'") << urlString;
CLogMessage(this).error(u"Authentication failed, no response from '%1'") << urlString;
return;
}
if (!Json::looksLikeJson(json))
{
CLogMessage(this).error("Illegal JSON object: %1") << CNetworkUtils::removeHtmlPartsFromPhpErrorMessage(json);
CLogMessage(this).error(u"Illegal JSON object: %1") << CNetworkUtils::removeHtmlPartsFromPhpErrorMessage(json);
return;
}
@@ -165,7 +165,7 @@ namespace BlackCore
}
else
{
CLogMessage(this).error("Authentication failed, %1") << nwReply->errorString();
CLogMessage(this).error(u"Authentication failed, %1") << nwReply->errorString();
return;
}
}