mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 11:55:35 +08:00
Fix compile error in qFatal caused by type change to QString
msg was changed from type "const char*" to QString, but qFatal is still expecting a "const char*" as its argument. Passed the QString value to the qPrintable macro to fix it.
This commit is contained in:
@@ -729,7 +729,7 @@ namespace BlackCore
|
||||
case Cvatlib_Network::error_Registered:
|
||||
case Cvatlib_Network::error_InvalidControl: msg = "Server: "; msg.append(cbvar_cast(cbvar)->fromFSD(msgData)); break;
|
||||
|
||||
default: qFatal("VATSIM shim library: %s (error %d)", msg, type); goto terminate;
|
||||
default: qFatal("VATSIM shim library: %s (error %d)", qPrintable(msg), type); goto terminate;
|
||||
}
|
||||
|
||||
emit cbvar_cast(cbvar)->statusMessage(BlackMisc::CStatusMessage(BlackMisc::CStatusMessage::TypeTrafficNetwork, BlackMisc::CStatusMessage::SeverityInfo, msg));
|
||||
|
||||
Reference in New Issue
Block a user