From 27797cb37a63eceed77e9b6c790eaaf9c438b360 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Thu, 10 Jul 2014 08:57:55 +0200 Subject: [PATCH] MSVC: Fix the compilation of benchmark tests with strict string literals. Introduced by 9f0e5d00ab51cc7c0dc87c8d72f48c4e6edaf120 . Change-Id: I704501bd7e543d971f9b8c9e75746b5749126c5f Reviewed-by: Maurice Kalinowski --- tests/benchmarks/gui/kernel/qapplication/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/benchmarks/gui/kernel/qapplication/main.cpp b/tests/benchmarks/gui/kernel/qapplication/main.cpp index c319b2bcc6e..dcf3ca75b62 100644 --- a/tests/benchmarks/gui/kernel/qapplication/main.cpp +++ b/tests/benchmarks/gui/kernel/qapplication/main.cpp @@ -60,7 +60,7 @@ void tst_qapplication::ctor() { // simulate reasonable argc, argv int argc = 1; - char *argv[] = { "tst_qapplication" }; + char *argv[] = { const_cast("tst_qapplication") }; QBENCHMARK { QApplication app(argc, argv); }