diff --git a/openVulkanoCpp/IO/Archive/IArchiveWriter.hpp b/openVulkanoCpp/IO/Archive/IArchiveWriter.hpp index 6c2820c..186537f 100644 --- a/openVulkanoCpp/IO/Archive/IArchiveWriter.hpp +++ b/openVulkanoCpp/IO/Archive/IArchiveWriter.hpp @@ -86,15 +86,13 @@ namespace OpenVulkano { AddFile(sDirName.c_str(), inArchiveDirName.c_str()); } - std::string fPath; for(const auto& entry : std::filesystem::directory_iterator(dirName)) { - fPath.clear(); - fPath = prefix + entry.path().filename().string(); + const std::string fPath = prefix + entry.path().filename().string(); if (entry.is_directory()) AddFiles(entry, fPath); else { - std::string entryName = entry.path().string(); + const std::string entryName = entry.path().string(); AddFile(entryName.c_str(), fPath.c_str()); } }