diff --git a/interfaces/innerkits/native_cpp/screen_sink/include/callback/dscreen_sink_load_callback.h b/interfaces/innerkits/native_cpp/screen_sink/include/callback/dscreen_sink_load_callback.h index 5bb267e..ef702d7 100644 --- a/interfaces/innerkits/native_cpp/screen_sink/include/callback/dscreen_sink_load_callback.h +++ b/interfaces/innerkits/native_cpp/screen_sink/include/callback/dscreen_sink_load_callback.h @@ -24,8 +24,8 @@ class DScreenSinkLoadCallback : public SystemAbilityLoadCallbackStub { public: explicit DScreenSinkLoadCallback(const std::string params); void OnLoadSystemAbilitySuccess(int32_t systemAbilityId, - const sptr &remoteObject); - void OnLoadSystemAbilityFail(int32_t systemAbilityId); + const sptr &remoteObject) override; + void OnLoadSystemAbilityFail(int32_t systemAbilityId) override; private: std::string params_; }; diff --git a/interfaces/innerkits/native_cpp/screen_sink/src/callback/dscreen_sink_load_callback.cpp b/interfaces/innerkits/native_cpp/screen_sink/src/callback/dscreen_sink_load_callback.cpp index ba1d2b3..b68c5eb 100644 --- a/interfaces/innerkits/native_cpp/screen_sink/src/callback/dscreen_sink_load_callback.cpp +++ b/interfaces/innerkits/native_cpp/screen_sink/src/callback/dscreen_sink_load_callback.cpp @@ -26,7 +26,7 @@ void DScreenSinkLoadCallback::OnLoadSystemAbilitySuccess( int32_t systemAbilityId, const sptr &remoteObject) { DHLOGI("load screen SA success, systemAbilityId:%d, remoteObject result:%s", - systemAbilityId, (remoteObject != nullptr) ? "true":"false"); + systemAbilityId, (remoteObject != nullptr) ? "true" : "false"); if (remoteObject == nullptr) { DHLOGE("remoteObject is nullptr"); return; diff --git a/interfaces/innerkits/native_cpp/screen_source/include/callback/dscreen_source_load_callback.h b/interfaces/innerkits/native_cpp/screen_source/include/callback/dscreen_source_load_callback.h index d47499a..ba89e48 100644 --- a/interfaces/innerkits/native_cpp/screen_source/include/callback/dscreen_source_load_callback.h +++ b/interfaces/innerkits/native_cpp/screen_source/include/callback/dscreen_source_load_callback.h @@ -24,8 +24,8 @@ class DScreenSourceLoadCallback : public SystemAbilityLoadCallbackStub { public: explicit DScreenSourceLoadCallback(const std::string params); void OnLoadSystemAbilitySuccess(int32_t systemAbilityId, - const sptr &remoteObject); - void OnLoadSystemAbilityFail(int32_t systemAbilityId); + const sptr &remoteObject) override; + void OnLoadSystemAbilityFail(int32_t systemAbilityId) override; private: std::string params_; }; diff --git a/interfaces/innerkits/native_cpp/screen_source/src/callback/dscreen_source_load_callback.cpp b/interfaces/innerkits/native_cpp/screen_source/src/callback/dscreen_source_load_callback.cpp index 8e26343..c2929c5 100644 --- a/interfaces/innerkits/native_cpp/screen_source/src/callback/dscreen_source_load_callback.cpp +++ b/interfaces/innerkits/native_cpp/screen_source/src/callback/dscreen_source_load_callback.cpp @@ -26,7 +26,7 @@ void DScreenSourceLoadCallback::OnLoadSystemAbilitySuccess( int32_t systemAbilityId, const sptr &remoteObject) { DHLOGI("load screen SA success, systemAbilityId:%d, remoteObject result:%s", - systemAbilityId, (remoteObject != nullptr) ? "true":"false"); + systemAbilityId, (remoteObject != nullptr) ? "true" : "false"); if (remoteObject == nullptr) { DHLOGE("remoteObject is nullptr"); return;