feat: Code inconsistency issue

Signed-off-by: zwx1271681 <zhaoyupeng5@huawei.com>
This commit is contained in:
zwx1271681 2024-07-18 08:59:37 +08:00
parent 940ff53cb1
commit ee00d71d36
2 changed files with 3 additions and 11 deletions

10
OAT.xml
View File

@ -52,15 +52,7 @@
</filefilter>
<filefilter name="binaryFileTypePolicyFilter" desc="Filters for binary file policies">
<filteritem type="filepath" name="figures/zh-cn_dataShare.png" desc="self developed image"/>
<filteritem type="filepath"
name="test/native/resource/datashare_ext_bundle/entry/src/main/resources/base/media/icon.png"
desc="self developed image"/>
<filteritem type="filepath"
name="test/native/resource/datashareproxy_bundle/proxydatas_with_permission/entry/src/main/resources/base/media/icon.png"
desc="self developed image"/>
<filteritem type="filepath"
name="test/native/resource/errorcode_ext_bundle/entry/src/main/resources/base/media/icon.png"
desc="self developed image"/>
<filteritem type="filepath" name="test/native/resource/.*.png" desc="self developed image"/>
</filefilter>
</filefilterlist>
</oatconfig>

View File

@ -19,8 +19,8 @@
#include "napi_common_data.h"
namespace OHOS::DataShare {
AsyncCall::AsyncCall(napi_env env, napi_callback_info info, std::shared_ptr<Context> context)
: env_(env)
__attribute__((no_sanitize("undefined"))) AsyncCall::AsyncCall(napi_env env, napi_callback_info info,
std::shared_ptr<Context> context) : env_(env)
{
context_ = new AsyncContext();
size_t argc = ARGS_MAX_COUNT;