提交 586340d1 编写于 作者: H handyohos

bugfix:fix clang12 compiling errors

1)更新clang12编译错误。
Signed-off-by: Nhandyohos <zhangxiaotian@huawei.com>
Change-Id: Idc45aa5cbf9a4c3a3630eaed8b92861e2f32cdef
上级 787f67b2
......@@ -21,7 +21,7 @@ static constexpr int ARGC_NUMBER = 2;
static constexpr int ARGC_THREE_NUMBER = 3;
static constexpr int BUF_LENGTH = 256;
using StorageAsyncContext = struct {
using StorageAsyncContext = struct StorageAsyncContext {
napi_env env = nullptr;
napi_async_work work = nullptr;
......
......@@ -24,7 +24,7 @@ static constexpr int BUF_LENGTH = 128;
static napi_ref g_paramWatchRef;
using ParamAsyncContext = struct {
using ParamAsyncContext = struct ParamAsyncContext {
napi_env env = nullptr;
napi_async_work work = nullptr;
......@@ -40,7 +40,7 @@ using ParamAsyncContext = struct {
std::string getValue;
};
using ParamWatcher = struct {
using ParamWatcher = struct ParamWatcher {
napi_env env = nullptr;
napi_ref thisVarRef = nullptr;
char keyPrefix[BUF_LENGTH] = { 0 };
......@@ -52,7 +52,7 @@ using ParamWatcher = struct {
std::map<uint32_t, napi_ref> callbackReferences {};
};
using ParamWatcherWork = struct {
using ParamWatcherWork = struct ParamWatcherWork {
napi_async_work work = nullptr;
ParamWatcher *watcher = nullptr;
bool startWatch = false;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册