mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Avoid VLA usage and prohibit it by compiler flag
This commit is contained in:
parent
721e06451e
commit
38f4d11d53
4 changed files with 6 additions and 7 deletions
|
@ -142,7 +142,7 @@ void showTextInputDialog(const std::string &hint, const std::string ¤t, in
|
|||
jhint, jcurrent, jeditType);
|
||||
}
|
||||
|
||||
void showComboBoxDialog(const std::string optionList[], s32 listSize, s32 selectedIdx)
|
||||
void showComboBoxDialog(const std::string *optionList, s32 listSize, s32 selectedIdx)
|
||||
{
|
||||
jmethodID showdialog = jnienv->GetMethodID(activityClass, "showSelectionInputDialog",
|
||||
"([Ljava/lang/String;I)V");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue