mirror of
https://gitee.com/openharmony/arkui_ace_engine
synced 2024-11-23 07:01:24 +00:00
commit
d363917940
@ -77,6 +77,7 @@ void PaContainer::InitializeBackend(SrcLanguage language)
|
||||
RefPtr<PaContainer> PaContainer::GetContainer(int32_t instanceId)
|
||||
{
|
||||
auto container = AceEngine::Get().GetContainer(instanceId);
|
||||
CHECK_NULL_RETURN(container, nullptr);
|
||||
return AceType::DynamicCast<PaContainer>(container);
|
||||
}
|
||||
|
||||
|
@ -170,7 +170,7 @@ napi_value StartTimeoutOrInterval(napi_env env, napi_callback_info info, bool is
|
||||
napi_ref value = nullptr;
|
||||
std::shared_ptr<NativeReference> valueRef;
|
||||
napi_create_reference(env, argv[index], 1, &value);
|
||||
valueRef.reset(reinterpret_cast<NativeReference*>(ref));
|
||||
valueRef.reset(reinterpret_cast<NativeReference*>(value));
|
||||
task.PushArgs(valueRef);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user