Skip to content

Commit

Permalink
fix: space indent and const auto
Browse files Browse the repository at this point in the history
  • Loading branch information
braindigitalis committed Oct 2, 2023
1 parent 7a51271 commit 0713f8c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/dpp/guild.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ std::string guild_member::build_json(bool with_id) const {
}

if (this->flags & gm_roles_action) {
j["roles"] = {};
j["roles"] = {};
for (const auto & role : this->roles) {
j["roles"].push_back(std::to_string(role));
}
Expand Down
2 changes: 1 addition & 1 deletion src/dpp/role.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ members_container role::get_members() const {
}
for (auto & m : g->members) {
/* Iterate all members and use std::find on their role list to see who has this role */
auto r = m.second.get_roles();
const auto& r = m.second.get_roles();
auto i = std::find(r.begin(), r.end(), this->id);
if (i != r.end()) {
gm[m.second.user_id] = m.second;
Expand Down

0 comments on commit 0713f8c

Please sign in to comment.