From 4da1266620200e56f458fa6e3ae299f9aa3f4dba Mon Sep 17 00:00:00 2001 From: lanhaoyu Date: Mon, 11 Aug 2025 20:52:29 +0800 Subject: [PATCH] class cache optimization Signed-off-by: lanhaoyu --- .../ani_distributed_bundle_manager_common.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/interfaces/kits/ani/distributed_bundle_manager/ani_distributed_bundle_manager_common.cpp b/interfaces/kits/ani/distributed_bundle_manager/ani_distributed_bundle_manager_common.cpp index 39fc04f..4eb777c 100644 --- a/interfaces/kits/ani/distributed_bundle_manager/ani_distributed_bundle_manager_common.cpp +++ b/interfaces/kits/ani/distributed_bundle_manager/ani_distributed_bundle_manager_common.cpp @@ -38,7 +38,7 @@ ani_object ConvertDistributedBundleElementName(ani_env* env, const ElementName& ani_class cls = CommonFunAni::CreateClassByName(env, CLASSNAME_ELEMENTNAME); RETURN_NULL_IF_NULL(cls); - ani_object object = CommonFunAni::CreateNewObjectByClass(env, cls); + ani_object object = CommonFunAni::CreateNewObjectByClass(env, CLASSNAME_ELEMENTNAME, cls); RETURN_NULL_IF_NULL(object); ani_string string = nullptr; @@ -71,7 +71,7 @@ ani_object ConvertRemoteAbilityInfo(ani_env* env, const RemoteAbilityInfo& remot ani_class cls = CommonFunAni::CreateClassByName(env, CLASSNAME_REMOTEABILITYINFO); RETURN_NULL_IF_NULL(cls); - ani_object object = CommonFunAni::CreateNewObjectByClass(env, cls); + ani_object object = CommonFunAni::CreateNewObjectByClass(env, CLASSNAME_REMOTEABILITYINFO, cls); RETURN_NULL_IF_NULL(object); ani_string string = nullptr; -- Gitee