diff --git a/src/database/databasemanager.cpp b/src/database/databasemanager.cpp index 5b8fff9de7e..142a1db332a 100644 --- a/src/database/databasemanager.cpp +++ b/src/database/databasemanager.cpp @@ -14,7 +14,7 @@ #include "lua/scripts/luascript.hpp" namespace InternalDBManager { - int32_t extractVersionFromFilename(const std::string& filename) { + int32_t extractVersionFromFilename(const std::string &filename) { std::regex versionRegex(R"((\d+)\.lua)"); std::smatch match; @@ -100,7 +100,7 @@ void DatabaseManager::updateDatabase() { std::vector> migrations; - for (const auto& entry : std::filesystem::directory_iterator(migrationDirectory)) { + for (const auto &entry : std::filesystem::directory_iterator(migrationDirectory)) { if (entry.is_regular_file()) { std::string filename = entry.path().filename().string(); int32_t fileVersion = InternalDBManager::extractVersionFromFilename(filename); @@ -110,7 +110,7 @@ void DatabaseManager::updateDatabase() { std::sort(migrations.begin(), migrations.end()); - for (const auto& [fileVersion, scriptPath] : migrations) { + for (const auto &[fileVersion, scriptPath] : migrations) { if (fileVersion > currentVersion) { if (!LuaScriptInterface::reserveScriptEnv()) { break;