From 63fe7c8f647cb107330bf2c6af96c1f2cf8ff2ff Mon Sep 17 00:00:00 2001 From: xinking129 Date: Wed, 6 Dec 2023 17:53:57 +0800 Subject: [PATCH 1/2] fix code about base ability Signed-off-by: xinking129 --- .../inner_api/file_access/src/js_file_access_ext_ability.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interfaces/inner_api/file_access/src/js_file_access_ext_ability.cpp b/interfaces/inner_api/file_access/src/js_file_access_ext_ability.cpp index 1250a6f3..dd33a94e 100644 --- a/interfaces/inner_api/file_access/src/js_file_access_ext_ability.cpp +++ b/interfaces/inner_api/file_access/src/js_file_access_ext_ability.cpp @@ -1052,7 +1052,7 @@ int JsFileAccessExtAbility::GetFileInfoNum(const std::string &sourceFileUri, con bool JsFileAccessExtAbility::BuildFilterParam(napi_env &env, const FileFilter &filter, const FilterParam ¶m, napi_value *argv, size_t &argc) { - string uriStr = param.fileInfo.uri; + std::string uriStr = param.fileInfo.uri; napi_value uri = nullptr; napi_create_string_utf8(env, uriStr.c_str(), uriStr.length(), &uri); if (uri == nullptr) { -- Gitee From 8f6ab7cd990262474917f92b8934b528dc81cec8 Mon Sep 17 00:00:00 2001 From: xinking129 Date: Mon, 22 Jan 2024 16:01:44 +0800 Subject: [PATCH 2/2] fix code about base ability Signed-off-by: xinking129 --- .../inner_api/file_access/src/js_file_access_ext_ability.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interfaces/inner_api/file_access/src/js_file_access_ext_ability.cpp b/interfaces/inner_api/file_access/src/js_file_access_ext_ability.cpp index dd33a94e..ca23bcff 100644 --- a/interfaces/inner_api/file_access/src/js_file_access_ext_ability.cpp +++ b/interfaces/inner_api/file_access/src/js_file_access_ext_ability.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Huawei Device Co., Ltd. + * Copyright (c) 2022-2024 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at -- Gitee