Skip to content

Commit

Permalink
Code format - (Clang-format)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jan 6, 2025
1 parent 147a410 commit 05e89f3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/creatures/players/wheel/player_wheel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3921,4 +3921,4 @@ PlayerWheelGem PlayerWheelGem::deserialize(const std::string &uuid, const ValueW
static_cast<WheelGemBasicModifier_t>(map["basicModifier2"]->get<IntType>()),
static_cast<WheelGemSupremeModifier_t>(map["supremeModifier"]->get<IntType>())
};
}
}
2 changes: 1 addition & 1 deletion src/creatures/players/wheel/player_wheel.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -475,4 +475,4 @@ class PlayerWheel {
std::array<PlayerWheelGem, 4> m_activeGems;
std::vector<PlayerWheelGem> m_revealedGems;
std::vector<PlayerWheelGem> m_destroyedGems;
};
};
6 changes: 4 additions & 2 deletions src/io/ioguild.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/io/ioguild.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};

0 comments on commit 05e89f3

Please sign in to comment.