diff --git a/src/nostalgia/tools/pack/pack.cpp b/src/nostalgia/tools/pack/pack.cpp index 46c9bc4f..9ae51693 100644 --- a/src/nostalgia/tools/pack/pack.cpp +++ b/src/nostalgia/tools/pack/pack.cpp @@ -7,6 +7,7 @@ */ #include +#include #include "pack.hpp" @@ -37,8 +38,8 @@ static ox::Error transformClaw(ox::FileSystem *dest, const ox::String &path) noe oxTracef("pack::transformClaw", "path: {}", path); oxRequire(fileList, dest->ls(path)); for (auto i = 0u; i < fileList.size(); ++i) { - auto &name = fileList[i]; - auto filePath = path + name; + const auto &name = fileList[i]; + const auto filePath = path + name; oxRequire(stat, dest->stat(filePath.c_str())); if (stat.fileType == ox::FileType_Directory) { const auto dir = path + name + '/'; @@ -77,8 +78,8 @@ static ox::Error copy(ox::FileSystem *src, ox::FileSystem *dest, const ox::Strin // copy oxRequire(fileList, src->ls(path)); for (auto i = 0u; i < fileList.size(); ++i) { - auto &name = fileList[i]; - auto currentFile = path + name; + const auto &name = fileList[i]; + const auto currentFile = path + name; if (currentFile == "/.nostalgia") { continue; } diff --git a/src/nostalgia/tools/pack/pack.hpp b/src/nostalgia/tools/pack/pack.hpp index 1845fe25..20fb207a 100644 --- a/src/nostalgia/tools/pack/pack.hpp +++ b/src/nostalgia/tools/pack/pack.hpp @@ -6,10 +6,8 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#include - namespace nostalgia { -ox::Error pack(ox::FileSystem *src, ox::FileSystem *dest) noexcept; +class ox::Error pack(class ox::FileSystem *src, class ox::FileSystem *dest) noexcept; }