diff options
author | Taeyeon Mori <orochimarufan.x3@gmail.com> | 2014-04-12 20:18:58 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2014-06-30 23:53:41 +0200 |
commit | eb5699c835c2c0f2ebb1561b1ae3f37a457b941f (patch) | |
tree | 3af1a755e3615c0e758e0541de56e84b0ab44305 | |
parent | b9fb7188226f2812a6ee3f28cd4968883d3b9e8a (diff) | |
download | MultiMC-eb5699c835c2c0f2ebb1561b1ae3f37a457b941f.tar MultiMC-eb5699c835c2c0f2ebb1561b1ae3f37a457b941f.tar.gz MultiMC-eb5699c835c2c0f2ebb1561b1ae3f37a457b941f.tar.lz MultiMC-eb5699c835c2c0f2ebb1561b1ae3f37a457b941f.tar.xz MultiMC-eb5699c835c2c0f2ebb1561b1ae3f37a457b941f.zip |
[Clang Warnings] Fix char* cast from string literal in Tests
-rw-r--r-- | tests/TestUtil.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/TestUtil.h b/tests/TestUtil.h index e9099b15..e7017743 100644 --- a/tests/TestUtil.h +++ b/tests/TestUtil.h @@ -39,9 +39,9 @@ struct TestsInternal #define QTEST_GUILESS_MAIN_MULTIMC(TestObject) \ 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; \ - MultiMC app(argc_, argv_, true); \ + MultiMC app(argc_, const_cast<char**>(argv_), true); \ app.setAttribute(Qt::AA_Use96Dpi, true); \ TestObject tc; \ return QTest::qExec(&tc, argc, argv); \ |