[Clang Warnings] Fix char* cast from string literal in Tests

This commit is contained in:
Taeyeon Mori 2014-04-12 20:18:58 +02:00 committed by Petr Mrázek
parent b9fb718822
commit eb5699c835

View File

@ -39,9 +39,9 @@ struct TestsInternal
#define QTEST_GUILESS_MAIN_MULTIMC(TestObject) \ #define QTEST_GUILESS_MAIN_MULTIMC(TestObject) \
int main(int argc, char *argv[]) \ int main(int argc, char *argv[]) \
{ \ { \
char *argv_[] = { argv[0] _MMC_EXTRA_ARGV }; \ const char *argv_[] = { argv[0] _MMC_EXTRA_ARGV }; \
int argc_ = 1 + _MMC_EXTRA_ARGC; \ int argc_ = 1 + _MMC_EXTRA_ARGC; \
MultiMC app(argc_, argv_, true); \ MultiMC app(argc_, const_cast<char**>(argv_), true); \
app.setAttribute(Qt::AA_Use96Dpi, true); \ app.setAttribute(Qt::AA_Use96Dpi, true); \
TestObject tc; \ TestObject tc; \
return QTest::qExec(&tc, argc, argv); \ return QTest::qExec(&tc, argc, argv); \