diff --git a/frameworks/js/napi/insight_intent/insight_intent/native_module.cpp b/frameworks/js/napi/insight_intent/insight_intent/native_module.cpp index 3d965d1b3b..bffcdfb5f4 100644 --- a/frameworks/js/napi/insight_intent/insight_intent/native_module.cpp +++ b/frameworks/js/napi/insight_intent/insight_intent/native_module.cpp @@ -21,9 +21,9 @@ */ static napi_module _module = { .nm_version = 0, - .nm_modname = "app.ability.insightintent", .nm_filename = nullptr, .nm_register_func = OHOS::AbilityRuntime::JsInsightIntentInit, + .nm_modname = "app.ability.insightintent", }; /* diff --git a/frameworks/js/napi/insight_intent/insight_intent_driver/native_module.cpp b/frameworks/js/napi/insight_intent/insight_intent_driver/native_module.cpp index ffc4879323..0d3e54f520 100644 --- a/frameworks/js/napi/insight_intent/insight_intent_driver/native_module.cpp +++ b/frameworks/js/napi/insight_intent/insight_intent_driver/native_module.cpp @@ -21,9 +21,9 @@ */ static napi_module _module = { .nm_version = 0, - .nm_modname = "app.ability.insightIntentDriver", .nm_filename = nullptr, .nm_register_func = OHOS::AbilityRuntime::JsInsightIntentDriverInit, + .nm_modname = "app.ability.insightIntentDriver", }; /* diff --git a/frameworks/js/napi/insight_intent/insight_intent_executor/insight_intent_executor_module.cpp b/frameworks/js/napi/insight_intent/insight_intent_executor/insight_intent_executor_module.cpp index 85e777eeb6..8ff34c6b8d 100644 --- a/frameworks/js/napi/insight_intent/insight_intent_executor/insight_intent_executor_module.cpp +++ b/frameworks/js/napi/insight_intent/insight_intent_executor/insight_intent_executor_module.cpp @@ -22,8 +22,8 @@ extern const char _binary_insight_intent_executor_abc_end[]; static napi_module _module = { .nm_version = 0, - .nm_modname = "app.ability.InsightIntentExecutor", .nm_filename = "app/ability/insightintentexecutor_napi.so/insight_intent_executor.js", + .nm_modname = "app.ability.InsightIntentExecutor", }; extern "C" __attribute__((constructor)) diff --git a/frameworks/js/napi/insight_intent_context/insight_intent_context_module.cpp b/frameworks/js/napi/insight_intent_context/insight_intent_context_module.cpp index b62565b3fe..6a7e635207 100644 --- a/frameworks/js/napi/insight_intent_context/insight_intent_context_module.cpp +++ b/frameworks/js/napi/insight_intent_context/insight_intent_context_module.cpp @@ -25,8 +25,8 @@ extern const char _binary_insight_intent_context_abc_end[]; */ static napi_module _module = { .nm_version = 0, - .nm_modname = "app.ability.InsightIntentContext", .nm_filename = "app/ability/insightintentcontext_napi.so", + .nm_modname = "app.ability.InsightIntentContext", }; /* diff --git a/frameworks/native/ability/native/ability_runtime/js_ui_ability.cpp b/frameworks/native/ability/native/ability_runtime/js_ui_ability.cpp index 37b5f99831..3ca2f7ea40 100644 --- a/frameworks/native/ability/native/ability_runtime/js_ui_ability.cpp +++ b/frameworks/native/ability/native/ability_runtime/js_ui_ability.cpp @@ -54,7 +54,8 @@ namespace { const std::string PAGE_STACK_PROPERTY_NAME = "pageStack"; const std::string SUPPORT_CONTINUE_PAGE_STACK_PROPERTY_NAME = "ohos.extra.param.key.supportContinuePageStack"; #endif -const int32_t BASE_DISPLAY_ID_NUM (10); // Numerical base (radix) that determines the valid characters and their interpretation. +// Numerical base (radix) that determines the valid characters and their interpretation. +const int32_t BASE_DISPLAY_ID_NUM (10); napi_value PromiseCallback(napi_env env, napi_callback_info info) { diff --git a/frameworks/native/ability/native/ui_ability.cpp b/frameworks/native/ability/native/ui_ability.cpp index bc06f5f2a8..59627c592f 100644 --- a/frameworks/native/ability/native/ui_ability.cpp +++ b/frameworks/native/ability/native/ui_ability.cpp @@ -67,7 +67,8 @@ void UIAbility::Init(const std::shared_ptr &abilityInfo #ifdef SUPPORT_GRAPHICS continuationManager_ = std::make_shared(); std::weak_ptr continuationManager = continuationManager_; - continuationHandler_ = std::make_shared(continuationManager, weak_from_this()); + continuationHandler_ = + std::make_shared(continuationManager, weak_from_this()); if (!continuationManager_->Init(shared_from_this(), GetToken(), GetAbilityInfo(), continuationHandler_)) { continuationManager_.reset(); } else { diff --git a/interfaces/kits/native/appkit/app/element_callback.h b/interfaces/kits/native/appkit/app/element_callback.h index 503e2b2a09..74e0a321e4 100644 --- a/interfaces/kits/native/appkit/app/element_callback.h +++ b/interfaces/kits/native/appkit/app/element_callback.h @@ -32,7 +32,8 @@ public: * @param config Indicates the new Configuration object. * @param ability Indicates the new Ability object. */ - virtual void OnConfigurationUpdated(const std::shared_ptr &ability, const Configuration &config) = 0; + virtual void OnConfigurationUpdated( + const std::shared_ptr &ability, const Configuration &config) = 0; /** *