Avoid constructing CStatusMessage format string from external data source.

Put external data source as argument using stream operator instead.

Part 1 of hotfix for assert caused by percent character in vatsim-data.txt
This commit is contained in:
Mat Sutcliffe
2019-08-31 14:09:15 +01:00
parent 5a5384289f
commit 82ce1c7fbc

View File

@@ -433,7 +433,7 @@ namespace BlackCore
if (!illegalEquipmentCodes.isEmpty())
{
CVatsimDataFileReader::logInconsistentData(
CStatusMessage(this, CStatusMessage::SeverityInfo, u"Illegal / ignored equipment code(s) in VATSIM data file: " % illegalEquipmentCodes.join(", "))
CStatusMessage(this, CStatusMessage::SeverityInfo, u"Illegal / ignored equipment code(s) in VATSIM data file: %1") << illegalEquipmentCodes.join(", ")
);
}