From 80f2f34447fa900b904a02c69889558e4c705a3a Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Thu, 7 Nov 2024 07:12:07 +0000 Subject: [PATCH] Code format - (Clang-format) --- src/database/databasemanager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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;