From dd66c15794b077bb4505810f3c59c859994e0413 Mon Sep 17 00:00:00 2001 From: Antoine Pilote Date: Sun, 17 Sep 2023 20:15:33 -0400 Subject: [PATCH] Compiler warning pass --- Nuake/src/Core/FileSystem.cpp | 4 ++-- Nuake/src/Core/FileSystem.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Nuake/src/Core/FileSystem.cpp b/Nuake/src/Core/FileSystem.cpp index c7d15487..a7b1c642 100644 --- a/Nuake/src/Core/FileSystem.cpp +++ b/Nuake/src/Core/FileSystem.cpp @@ -174,12 +174,12 @@ namespace Nuake fileWriter.close(); } - int FileSystem::DeleteFileFromPath(const std::string& path) + uintmax_t FileSystem::DeleteFileFromPath(const std::string& path) { return std::remove(path.c_str()); } - int FileSystem::DeleteFolder(const std::string& path) + uintmax_t FileSystem::DeleteFolder(const std::string& path) { return std::filesystem::remove_all(path.c_str()); } diff --git a/Nuake/src/Core/FileSystem.h b/Nuake/src/Core/FileSystem.h index 8327e343..98ff2f74 100644 --- a/Nuake/src/Core/FileSystem.h +++ b/Nuake/src/Core/FileSystem.h @@ -47,8 +47,8 @@ namespace Nuake static bool BeginWriteFile(const std::string path); static bool WriteLine(const std::string line); static void EndWriteFile(); - static int DeleteFileFromPath(const std::string& path); - static int DeleteFolder(const std::string& path); + static uintmax_t DeleteFileFromPath(const std::string& path); + static uintmax_t DeleteFolder(const std::string& path); }; class File