diff --git a/interfaces/kits/js/src/mod_fs/properties/ani/utimes_ani.h b/interfaces/kits/js/src/mod_fs/properties/ani/utimes_ani.h index 118f7d25ad1cd1fb7cc4442f4e4826af311a36f4..b07dd421d1d86d0aa80ca047889d45377c4fcd1e 100644 --- a/interfaces/kits/js/src/mod_fs/properties/ani/utimes_ani.h +++ b/interfaces/kits/js/src/mod_fs/properties/ani/utimes_ani.h @@ -13,8 +13,8 @@ * limitations under the License. */ -#ifndef INTERFACES_KITS_JS_SRC_MOD_FS_UTIMES_ANI_H -#define INTERFACES_KITS_JS_SRC_MOD_FS_UTIMES_ANI_H +#ifndef INTERFACES_KITS_JS_SRC_MOD_FS_PROPERTIES_ANI_UTIMES_ANI_H +#define INTERFACES_KITS_JS_SRC_MOD_FS_PROPERTIES_ANI_UTIMES_ANI_H #include @@ -33,4 +33,4 @@ public: } // namespace FileManagement } // namespace OHOS -#endif // INTERFACES_KITS_JS_SRC_MOD_FS_UTIMES_ANI_H \ No newline at end of file +#endif // INTERFACES_KITS_JS_SRC_MOD_FS_PROPERTIES_ANI_UTIMES_ANI_H \ No newline at end of file diff --git a/interfaces/kits/js/src/mod_fs/properties/utimes_core.cpp b/interfaces/kits/js/src/mod_fs/properties/utimes_core.cpp index 4b517167bf69d8fbbee4b590ba089d193c6c7746..bc110b2f52c3dd2504a6fad3b763026faceedb49 100644 --- a/interfaces/kits/js/src/mod_fs/properties/utimes_core.cpp +++ b/interfaces/kits/js/src/mod_fs/properties/utimes_core.cpp @@ -31,8 +31,7 @@ FsResult UtimesCore::DoUtimes(const string &path, const double mtime) HILOGE("Invalid mtime"); return FsResult::Error(EINVAL); } - std::unique_ptr statReq = { - new (std::nothrow) uv_fs_t, FsUtils::FsReqCleanup }; + unique_ptr statReq = { new (nothrow) uv_fs_t, FsUtils::FsReqCleanup }; if (!statReq) { HILOGE("Failed to request heap memory."); return FsResult::Error(ENOMEM); @@ -43,8 +42,7 @@ FsResult UtimesCore::DoUtimes(const string &path, const double mtime) return FsResult::Error(ret); } - std::unique_ptr utimesReq = { - new uv_fs_t, FsUtils::FsReqCleanup }; + unique_ptr utimesReq = { new uv_fs_t, FsUtils::FsReqCleanup }; if (!utimesReq) { HILOGE("Failed to request heap memory."); return FsResult::Error(ENOMEM); diff --git a/interfaces/kits/js/src/mod_fs/properties/utimes_core.h b/interfaces/kits/js/src/mod_fs/properties/utimes_core.h index 86fe8c4fd83dded66c52ddf571c158e1799330a6..34d5f8857004662ce18d941c2eeea79e52345626 100644 --- a/interfaces/kits/js/src/mod_fs/properties/utimes_core.h +++ b/interfaces/kits/js/src/mod_fs/properties/utimes_core.h @@ -25,7 +25,7 @@ class UtimesCore final { public: static FsResult DoUtimes(const string &path, const double mtime); }; -const std::string PROCEDURE_RMDIRENT_NAME = "FileIOUtimes"; + } // namespace ModuleFileIO } // namespace FileManagement } // namespace OHOS