From 602e815149cfa1a23d3aba4a22ecc189dc64af12 Mon Sep 17 00:00:00 2001 From: onexiaomin Date: Thu, 9 Mar 2023 09:57:24 +0800 Subject: [PATCH] fixed f566f6c from https://gitee.com/onexiaomin/filemanagement_file_api_wp_1/pulls/211 modify signed to unsigned, remove a blank line Signed-off-by: wangminmin --- interfaces/kits/js/src/mod_fs/properties/move.cpp | 1 - interfaces/kits/js/src/mod_fs/properties/open.cpp | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/interfaces/kits/js/src/mod_fs/properties/move.cpp b/interfaces/kits/js/src/mod_fs/properties/move.cpp index dcd1e009d..8185a673f 100644 --- a/interfaces/kits/js/src/mod_fs/properties/move.cpp +++ b/interfaces/kits/js/src/mod_fs/properties/move.cpp @@ -190,7 +190,6 @@ napi_value Move::Async(napi_env env, napi_callback_info info) return { NVal::CreateUndefined(env) }; }; - NVal thisVar(env, funcArg.GetThisVar()); size_t argc = funcArg.GetArgc(); if (argc == NARG_CNT::TWO || (argc == NARG_CNT::THREE && NVal(env, funcArg[NARG_POS::THIRD]).TypeIs(napi_number))) { diff --git a/interfaces/kits/js/src/mod_fs/properties/open.cpp b/interfaces/kits/js/src/mod_fs/properties/open.cpp index 954534516..65f0701f8 100644 --- a/interfaces/kits/js/src/mod_fs/properties/open.cpp +++ b/interfaces/kits/js/src/mod_fs/properties/open.cpp @@ -134,7 +134,7 @@ static string GetBundleNameSelf() return bundleName; } -static string GetPathFromFileUri(string path, string bundleName, int mode) +static string GetPathFromFileUri(string path, string bundleName, unsigned int mode) { if (bundleName != GetBundleNameSelf()) { if ((mode & O_WRONLY) == O_WRONLY || (mode & O_RDWR) == O_RDWR) { -- Gitee