From f50fe098e3dbc1c144d44150fe2c9ff36e212160 Mon Sep 17 00:00:00 2001 From: Roland Winklmeier Date: Wed, 15 Jan 2014 20:39:15 +0100 Subject: [PATCH] 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. --- src/blackcore/network_vatlib.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/blackcore/network_vatlib.cpp b/src/blackcore/network_vatlib.cpp index 60d707945..edc68bbb0 100644 --- a/src/blackcore/network_vatlib.cpp +++ b/src/blackcore/network_vatlib.cpp @@ -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));