mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
Style: Set clang-format Standard to Cpp11
For us, it practically only changes the fact that `A<A<int>>` is now used instead of the C++03 compatible `A<A<int> >`. Note: clang-format 10+ changed the `Standard` arguments to fully specified `c++11`, `c++14`, etc. versions, but we can't use `c++17` now if we want to preserve compatibility with clang-format 8 and 9. `Cpp11` is still supported as deprecated alias for `Latest`.
This commit is contained in:
parent
c5d76139dc
commit
cb282c6ef0
247 changed files with 794 additions and 794 deletions
|
@ -209,7 +209,7 @@ void WebSocketMultiplayerPeer::_send_add(int32_t p_peer_id) {
|
|||
// Then send the server peer (which will trigger connection_succeded in client)
|
||||
_send_sys(get_peer(p_peer_id), SYS_ADD, 1);
|
||||
|
||||
for (Map<int, Ref<WebSocketPeer> >::Element *E = _peer_map.front(); E; E = E->next()) {
|
||||
for (Map<int, Ref<WebSocketPeer>>::Element *E = _peer_map.front(); E; E = E->next()) {
|
||||
int32_t id = E->key();
|
||||
if (p_peer_id == id)
|
||||
continue; // Skip the newwly added peer (already confirmed)
|
||||
|
@ -222,7 +222,7 @@ void WebSocketMultiplayerPeer::_send_add(int32_t p_peer_id) {
|
|||
}
|
||||
|
||||
void WebSocketMultiplayerPeer::_send_del(int32_t p_peer_id) {
|
||||
for (Map<int, Ref<WebSocketPeer> >::Element *E = _peer_map.front(); E; E = E->next()) {
|
||||
for (Map<int, Ref<WebSocketPeer>>::Element *E = _peer_map.front(); E; E = E->next()) {
|
||||
int32_t id = E->key();
|
||||
if (p_peer_id != id)
|
||||
_send_sys(get_peer(id), SYS_DEL, p_peer_id);
|
||||
|
@ -247,7 +247,7 @@ Error WebSocketMultiplayerPeer::_server_relay(int32_t p_from, int32_t p_to, cons
|
|||
|
||||
} else if (p_to == 0) {
|
||||
|
||||
for (Map<int, Ref<WebSocketPeer> >::Element *E = _peer_map.front(); E; E = E->next()) {
|
||||
for (Map<int, Ref<WebSocketPeer>>::Element *E = _peer_map.front(); E; E = E->next()) {
|
||||
if (E->key() != p_from)
|
||||
E->get()->put_packet(p_buffer, p_buffer_size);
|
||||
}
|
||||
|
@ -255,7 +255,7 @@ Error WebSocketMultiplayerPeer::_server_relay(int32_t p_from, int32_t p_to, cons
|
|||
|
||||
} else if (p_to < 0) {
|
||||
|
||||
for (Map<int, Ref<WebSocketPeer> >::Element *E = _peer_map.front(); E; E = E->next()) {
|
||||
for (Map<int, Ref<WebSocketPeer>>::Element *E = _peer_map.front(); E; E = E->next()) {
|
||||
if (E->key() != p_from && E->key() != -p_to)
|
||||
E->get()->put_packet(p_buffer, p_buffer_size);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue