From 05e89f3f37378cfbcb57f8367b5af09ccf582742 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Mon, 6 Jan 2025 03:12:25 +0000 Subject: [PATCH] Code format - (Clang-format) --- src/creatures/players/wheel/player_wheel.cpp | 2 +- src/creatures/players/wheel/player_wheel.hpp | 2 +- src/io/ioguild.cpp | 6 ++++-- src/io/ioguild.hpp | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/creatures/players/wheel/player_wheel.cpp b/src/creatures/players/wheel/player_wheel.cpp index fce2521..d435adc 100644 --- a/src/creatures/players/wheel/player_wheel.cpp +++ b/src/creatures/players/wheel/player_wheel.cpp @@ -3921,4 +3921,4 @@ PlayerWheelGem PlayerWheelGem::deserialize(const std::string &uuid, const ValueW static_cast(map["basicModifier2"]->get()), static_cast(map["supremeModifier"]->get()) }; -} \ No newline at end of file +} diff --git a/src/creatures/players/wheel/player_wheel.hpp b/src/creatures/players/wheel/player_wheel.hpp index e1960dc..c3e02ae 100644 --- a/src/creatures/players/wheel/player_wheel.hpp +++ b/src/creatures/players/wheel/player_wheel.hpp @@ -475,4 +475,4 @@ class PlayerWheel { std::array m_activeGems; std::vector m_revealedGems; std::vector m_destroyedGems; -}; \ No newline at end of file +}; diff --git a/src/io/ioguild.cpp b/src/io/ioguild.cpp index 8a22497..1fad260 100644 --- a/src/io/ioguild.cpp +++ b/src/io/ioguild.cpp @@ -109,12 +109,14 @@ std::string IOGuild::getRankName(int16_t guildLevel, uint32_t guildId) { return result->getString("name"); } -bool IOGuild::rankNameExists(const std::string& rankName, uint32_t guildId) { +bool IOGuild::rankNameExists(const std::string &rankName, uint32_t guildId) { Database &db = Database::getInstance(); std::ostringstream query; query << "SELECT `name` FROM `guild_ranks` WHERE `guild_id` = " << guildId - << " AND `name` = " << "'" << db.escapeString(rankName) << "'" << " LIMIT 1;"; + << " AND `name` = " + << "'" << db.escapeString(rankName) << "'" + << " LIMIT 1;"; DBResult_ptr result = db.storeQuery(query.str()); return result != nullptr; diff --git a/src/io/ioguild.hpp b/src/io/ioguild.hpp index b1d2578..ed87754 100644 --- a/src/io/ioguild.hpp +++ b/src/io/ioguild.hpp @@ -28,7 +28,7 @@ class IOGuild { static std::string getGuildNameById(uint32_t id); static uint32_t getRankIdByGuildIdAndLevel(uint32_t guildId, uint32_t guildLevel); static std::string getRankName(int16_t guildLevel, uint32_t guildId); - static bool rankNameExists(const std::string& rankName, uint32_t guildId); + static bool rankNameExists(const std::string &rankName, uint32_t guildId); static void getWarList(uint32_t guildId, GuildWarVector &guildWarVector); static bool guildExists(uint32_t guildId); };