update interfaces/kits/picker/src/picker_n_exporter.cpp.

Signed-off-by: BrainL <libuyan1@huawei.com>
This commit is contained in:
BrainL 2024-09-09 04:58:39 +00:00 committed by Gitee
parent 1454aecf2b
commit 51dfca22ad
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -152,7 +152,7 @@ static void StartModalPickerAsyncCallbackComplete(napi_env env, napi_status stat
delete context;
}
static bool IsTypeRight(napi_env env, napi_value val, napi_value_type type)
static bool IsTypeRight(napi_env env, napi_value val, napi_valuetype type)
{
napi_valuetype valueType;
napi_status status = napi_typeof(env, val, &valueType);
@ -176,7 +176,7 @@ static ErrCode GetWindowName(napi_env env, napi_value properties, sptr<Rosen::Wi
size_t nameLen;
status = napi_get_value_string_utf8(env, name, NULL, 0, &nameLen);
if (status != napi_ok) {
HILOG_ERROR("[picker] Get window name length fail.")
HILOG_ERROR("[picker] Get window name length fail.");
return ERR_INV;
}
char *nameBuf = new char[nameLen + 1];
@ -198,7 +198,7 @@ static ErrCode GetWindowName(napi_env env, napi_value properties, sptr<Rosen::Wi
}
template <class AsyncContext>
static ErrCode GetCustomShowingWindow(napi_env, AsyncContext &asyncContext,
static ErrCode GetCustomShowingWindow(napi_env env, AsyncContext &asyncContext,
const napi_callback_info info, sptr<Rosen::Window> &window)
{
HILOG_INFO("[picker] GetCustomShowingWindow enter.");