From 166ee7f510148db2edef6dd36be413b439e20480 Mon Sep 17 00:00:00 2001 From: yangbiao59 Date: Mon, 4 Aug 2025 06:00:39 +0000 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4rmdirCore=E4=B8=ADstd?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: yangbiao59 --- interfaces/kits/js/src/mod_fs/properties/rmdir_core.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/interfaces/kits/js/src/mod_fs/properties/rmdir_core.cpp b/interfaces/kits/js/src/mod_fs/properties/rmdir_core.cpp index fd37c3be8..f5f5e3ea5 100644 --- a/interfaces/kits/js/src/mod_fs/properties/rmdir_core.cpp +++ b/interfaces/kits/js/src/mod_fs/properties/rmdir_core.cpp @@ -55,7 +55,7 @@ static int32_t RmDirent(const string &fpath) #else static int32_t RmDirent(const string &fpath) { - std::unique_ptr scandirReq = { + unique_ptr scandirReq = { new (std::nothrow) uv_fs_t, FsUtils::FsReqCleanup }; if (!scandirReq) { HILOGE("Failed to request heap memory."); @@ -89,7 +89,7 @@ static int32_t RmDirent(const string &fpath) } } } - std::unique_ptr rmdirReq = { + unique_ptr rmdirReq = { new (std::nothrow) uv_fs_t, FsUtils::FsReqCleanup}; if (!rmdirReq) { HILOGE("Failed to request heap memory."); -- Gitee