未验证 提交 a1b4438b 编写于 作者: O openharmony_ci 提交者: Gitee

!733 fix clang12 compiling error

Merge pull request !733 from handy/0530
......@@ -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.
先完成此消息的编辑!
想要评论请 注册