Fix format in platform plugin loading error reporting.

qguiapplication.cpp:792:133: warning: format not a string literal and
no format arguments [-Wformat-security].

Introduced  by 0d7d53fd46e8ab512bed88d0dab114cfada227ce .

Change-Id: I70268a8b597be33226efb9bb4d7d9f672f0d7440
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
This commit is contained in:
Friedemann Kleint 2013-06-13 12:13:07 +02:00 committed by The Qt Project
parent af2f1e14f6
commit 5fc9898237

View File

@ -789,7 +789,7 @@ static void init_platform(const QString &pluginArgument, const QString &platform
fatalMessage += QStringLiteral("Available platforms are: %1\n").arg(
keys.join(QStringLiteral(", ")));
fatalMessage += QStringLiteral("GUI applications require a platform plugin. Terminating.");
qFatal(qPrintable(fatalMessage));
qFatal("%s", qPrintable(fatalMessage));
return;
}