diff --git a/multimedia/image/image_js_standard/imageReceiverNDK/entry/src/main/cpp/napi/image_receiver_mdk_test.cpp b/multimedia/image/image_js_standard/imageReceiverNDK/entry/src/main/cpp/napi/image_receiver_mdk_test.cpp index ea42ed7a70d5d8c9c7189f13a79a84debb49afa9..0acacc7ca0a65e9a724cd446efc198e78b01bb2e 100644 --- a/multimedia/image/image_js_standard/imageReceiverNDK/entry/src/main/cpp/napi/image_receiver_mdk_test.cpp +++ b/multimedia/image/image_js_standard/imageReceiverNDK/entry/src/main/cpp/napi/image_receiver_mdk_test.cpp @@ -161,9 +161,9 @@ napi_value ImageReceiverNDKTest::JsReadNextImage(napi_env env, napi_callback_inf } return result; } -void ImageReceiverNDKTest::onEvent() +void ImageReceiverNDKTest::OnEvent() { - HiviewDFX::HiLog::Debug(LABEL, "ImageReceiverNDKTest::onEvent IN [%{public}p]", &sOnEvnentCount); + HiviewDFX::HiLog::Debug(LABEL, "ImageReceiverNDKTest::OnEvent IN [%{public}p]", &sOnEvnentCount); sOnEvnentCount++; } @@ -178,7 +178,7 @@ napi_value ImageReceiverNDKTest::JsOn(napi_env env, napi_callback_info info) } sOnEvnentCount = NUM_0; - int32_t res = OH_Image_Receiver_On(native, onEvent); + int32_t res = OH_Image_Receiver_On(native, OnEvent); napi_create_int32(env, res, &result); return result; } diff --git a/multimedia/image/image_js_standard/imageReceiverNDK/entry/src/main/cpp/napi/image_receiver_mdk_test.h b/multimedia/image/image_js_standard/imageReceiverNDK/entry/src/main/cpp/napi/image_receiver_mdk_test.h index 1991e5c214fdb4b0ec16d9df4604150e0fe1cee8..1957bb7834030b69d5c326392d7dcde089f4b91e 100644 --- a/multimedia/image/image_js_standard/imageReceiverNDK/entry/src/main/cpp/napi/image_receiver_mdk_test.h +++ b/multimedia/image/image_js_standard/imageReceiverNDK/entry/src/main/cpp/napi/image_receiver_mdk_test.h @@ -44,7 +44,7 @@ public: private: static uint32_t sOnEvnentCount; - static void onEvent(); + static void OnEvent(); }; } // namespace Media } // namespace OHOS