From 263415b887fcdcc2d1aec8b2b02bce689410e3b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D1=80=D0=B0=D0=BD=D0=B8=D0=BC=D0=B8=D1=80=20=D0=9A?= =?UTF-8?q?=D0=B0=D1=80=D0=B0=D1=9F=D0=B8=D1=9B?= Date: Wed, 16 Dec 2020 13:50:47 -0800 Subject: [PATCH] Cleanup. --- examples/common/entry/entry_android.cpp | 4 ++-- examples/common/entry/entry_ios.mm | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/common/entry/entry_android.cpp b/examples/common/entry/entry_android.cpp index f1b8ce265..3ec42fcce 100644 --- a/examples/common/entry/entry_android.cpp +++ b/examples/common/entry/entry_android.cpp @@ -197,8 +197,8 @@ namespace entry , 0 ); - const char* const argv[1] = { "android.so" }; - m_mte.m_argc = 1; + static const char* const argv[] = { "android.so" }; + m_mte.m_argc = BX_COUNTOF(argv); m_mte.m_argv = argv; while (0 == m_app->destroyRequested) diff --git a/examples/common/entry/entry_ios.mm b/examples/common/entry/entry_ios.mm index 915786a07..a99b7cdf8 100644 --- a/examples/common/entry/entry_ios.mm +++ b/examples/common/entry/entry_ios.mm @@ -38,8 +38,8 @@ namespace entry { Context(uint32_t _width, uint32_t _height) { - const char* const argv[1] = { "ios" }; - m_mte.m_argc = 1; + static const char* const argv[] = { "ios" }; + m_mte.m_argc = BX_COUNTOF(argv); m_mte.m_argv = argv; m_eventQueue.postSizeEvent(s_defaultWindow, _width, _height);