IDEA-296486: minor correction (syntax)

fixed remark from review

GitOrigin-RevId: cc976db4791656b6429e250b8f3c3895d72724e1
This commit is contained in:
Artem Bochkarev
2022-07-12 12:07:19 +04:00
committed by intellij-monorepo-bot
parent 14d8a5523c
commit 1cdfbcad75
2 changed files with 1 additions and 1 deletions

Binary file not shown.

View File

@@ -439,7 +439,7 @@ Java_com_intellij_ui_mac_screenmenu_Menu_nativeRenameAppMenuItems(JNIEnv *env, j
JNI_COCOA_ENTER();
const int stringCount = (*env)->GetArrayLength(env, jStringArray);
if (stringCount < 2) return; // simple protection (just for insurance)
__strong NSMutableArray * stringArray = [NSMutableArray arrayWithCapacity:stringCount];
NSMutableArray * __strong stringArray = [NSMutableArray arrayWithCapacity:stringCount];
for (int i = 0; i < stringCount; i += 2) {
jstring jTitle = (jstring) ((*env)->GetObjectArrayElement(env, jStringArray, i));
[stringArray addObject:JavaStringToNSString(env, jTitle)];