network, yuzu: Improve variable naming and style consistency
This commit is contained in:
parent
6b5667dfa5
commit
6a2dcc8b3d
14 changed files with 53 additions and 47 deletions
|
@ -416,8 +416,9 @@ void RoomMember::RoomMemberImpl::Disconnect() {
|
|||
room_information.member_slots = 0;
|
||||
room_information.name.clear();
|
||||
|
||||
if (!server)
|
||||
if (!server) {
|
||||
return;
|
||||
}
|
||||
enet_peer_disconnect(server, 0);
|
||||
|
||||
ENetEvent event;
|
||||
|
@ -483,8 +484,9 @@ template <typename T>
|
|||
void RoomMember::RoomMemberImpl::Invoke(const T& data) {
|
||||
std::lock_guard lock(callback_mutex);
|
||||
CallbackSet<T> callback_set = callbacks.Get<T>();
|
||||
for (auto const& callback : callback_set)
|
||||
for (auto const& callback : callback_set) {
|
||||
(*callback)(data);
|
||||
}
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue