提交 276f8fdb 编写于 作者: Y yinchuang

Fix llvm-15 build error

Signed-off-by: Nyinchuang <yinchuang@huawei.com>
Change-Id: I5a9dd8c107f57f3796fc76f33dd9a7c6dacf305b
上级 cf3830df
......@@ -413,7 +413,15 @@ napi_value PluginRender::TestGetXComponentId(napi_env env, napi_callback_info in
NAPI_CALL(env, napi_get_cb_info(env, info, NULL, NULL, &thisArg, NULL));
status = napi_get_named_property(env, thisArg, OH_NATIVE_XCOMPONENT_OBJ, &exportInstance);
if (status != napi_ok) {
return nullptr;
};
status = napi_unwrap(env, exportInstance, reinterpret_cast<void**>(&nativeXComponent));
if (status != napi_ok) {
return nullptr;
};
ret = OH_NativeXComponent_GetXComponentId(nativeXComponent, idStr, &idSize);
if (ret != OH_NATIVEXCOMPONENT_RESULT_SUCCESS) {
return nullptr;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册