Ref T480 No need for QStringLiteral when concatenating with %, use UTF-16 string literals.

This commit is contained in:
Mat Sutcliffe
2018-12-20 19:26:39 +00:00
parent 5443701e09
commit ace7650ebe
67 changed files with 394 additions and 398 deletions

View File

@@ -2397,7 +2397,7 @@ namespace BlackSimPlugin
const HRESULT hr = SimConnect_GetLastSentPacketID(m_hSimConnect, &dwLastId);
if (isFailure(hr)) { return; }
if (m_sendIdTraces.size() > MaxSendIdTraces) { m_sendIdTraces.removeLast(); }
const TraceFsxSendId trace(dwLastId, simObject, details.isEmpty() ? functionName : details % QStringLiteral(", ") % functionName);
const TraceFsxSendId trace(dwLastId, simObject, details.isEmpty() ? functionName : details % u", " % functionName);
m_sendIdTraces.push_front(trace);
}
@@ -2418,7 +2418,7 @@ namespace BlackSimPlugin
if (isOk(hr)) { return hr; }
if (!warningMsg.isEmpty())
{
CLogMessage(this).warning(warningMsg % QStringLiteral(" SimObject: ") % simObject.toQString());
CLogMessage(this).warning(warningMsg % u" SimObject: " % simObject.toQString());
}
this->triggerAutoTraceSendId();
return hr;