提交 ac0a6d7b 编写于 作者: C Cao Chuan

Fix code scan 2

Signed-off-by: NCao Chuan <caochuan@huawei.com>
上级 f021e919
...@@ -161,9 +161,9 @@ napi_value ImageReceiverNDKTest::JsReadNextImage(napi_env env, napi_callback_inf ...@@ -161,9 +161,9 @@ napi_value ImageReceiverNDKTest::JsReadNextImage(napi_env env, napi_callback_inf
} }
return result; 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++; sOnEvnentCount++;
} }
...@@ -178,7 +178,7 @@ napi_value ImageReceiverNDKTest::JsOn(napi_env env, napi_callback_info info) ...@@ -178,7 +178,7 @@ napi_value ImageReceiverNDKTest::JsOn(napi_env env, napi_callback_info info)
} }
sOnEvnentCount = NUM_0; 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); napi_create_int32(env, res, &result);
return result; return result;
} }
......
...@@ -44,7 +44,7 @@ public: ...@@ -44,7 +44,7 @@ public:
private: private:
static uint32_t sOnEvnentCount; static uint32_t sOnEvnentCount;
static void onEvent(); static void OnEvent();
}; };
} // namespace Media } // namespace Media
} // namespace OHOS } // namespace OHOS
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册