diff --git a/frameworks/cj/src/input_method_ffi.cpp b/frameworks/cj/src/input_method_ffi.cpp index 4a91bdca54f82bc88c86c2551173a73ec6e962c8..7f6dc50d3591281144320fb4506b035989ad21d8 100644 --- a/frameworks/cj/src/input_method_ffi.cpp +++ b/frameworks/cj/src/input_method_ffi.cpp @@ -159,9 +159,9 @@ RetInputMethodSubtype FfiInputMethodSettingListInputMethodSubtype(CInputMethodPr return ret; } for (unsigned int i = 0; i < ret.size; i++) { - CInputMethodSubtype props; - Utils::InputMethodSubProperty2C(&props, subProps[i]); - ret.head[i] = props; + CInputMethodSubtype subtype; + Utils::InputMethodSubProperty2C(&subtype, subProps[i]); + ret.head[i] = subtype; } return ret; }