mirror of
https://gitee.com/openharmony/inputmethod_imf
synced 2024-11-23 14:49:59 +00:00
add a nothrow
Signed-off-by: zhaolinglan <zhaolinglan@huawei.com>
This commit is contained in:
parent
7d7c866685
commit
bc1daf879c
@ -315,7 +315,7 @@ namespace MiscServices {
|
||||
int32_t uid = IPCSkeleton::GetCallingUid();
|
||||
int32_t userId = getUserId(uid);
|
||||
|
||||
auto *parcel = new MessageParcel();
|
||||
auto *parcel = new (std::nothrow) MessageParcel();
|
||||
InputMethodProperty *target = InputMethodProperty::Unmarshalling(data);
|
||||
parcel->WriteInt32(userId);
|
||||
if (!target->Marshalling(*parcel)) {
|
||||
|
Loading…
Reference in New Issue
Block a user