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 1250a6f30527621318971f451cff314fd8465313..ca23bcff6220929a72198c4909b21c62d97bf7fa 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 @@ -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) {