Skip to content

Commit

Permalink
easy_*: Reformat braces
Browse files Browse the repository at this point in the history
  • Loading branch information
lhmouse committed Jan 15, 2024
1 parent e60bd2e commit 28fba8b
Show file tree
Hide file tree
Showing 17 changed files with 34 additions and 68 deletions.
3 changes: 1 addition & 2 deletions poseidon/easy/easy_deflator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ struct Final_Deflator final : Deflator
Final_Deflator(zlib_Format format, int level)
:
Deflator(format, level)
{
}
{ }

virtual
char*
Expand Down
6 changes: 2 additions & 4 deletions poseidon/easy/easy_http_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ struct Final_Fiber final : Abstract_Fiber
Final_Fiber(const Easy_HTTP_Client::thunk_type& thunk, const shptr<Event_Queue>& queue)
:
m_thunk(thunk), m_wqueue(queue)
{
}
{ }

virtual
void
Expand Down Expand Up @@ -107,8 +106,7 @@ struct Final_HTTP_Client_Session final : HTTP_Client_Session
cow_stringR host_header)
:
m_thunk(thunk), m_wqueue(queue), m_host_header(host_header)
{
}
{ }

void
do_push_event_common(Event_Queue::Event&& event)
Expand Down
6 changes: 2 additions & 4 deletions poseidon/easy/easy_http_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ struct Final_Fiber final : Abstract_Fiber
const shptr<Client_Table>& table, const volatile HTTP_Server_Session* refptr)
:
m_thunk(thunk), m_wtable(table), m_refptr(refptr)
{
}
{ }

virtual
void
Expand Down Expand Up @@ -138,8 +137,7 @@ struct Final_HTTP_Server_Session final : HTTP_Server_Session
const Easy_HTTP_Server::thunk_type& thunk, const shptr<Client_Table>& table)
:
TCP_Socket(move(fd)), m_thunk(thunk), m_wtable(table)
{
}
{ }

void
do_push_event_common(Client_Table::Event_Queue::Event&& event)
Expand Down
6 changes: 2 additions & 4 deletions poseidon/easy/easy_https_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ struct Final_Fiber final : Abstract_Fiber
Final_Fiber(const Easy_HTTPS_Client::thunk_type& thunk, const shptr<Event_Queue>& queue)
:
m_thunk(thunk), m_wqueue(queue)
{
}
{ }

virtual
void
Expand Down Expand Up @@ -107,8 +106,7 @@ struct Final_HTTPS_Client_Session final : HTTPS_Client_Session
cow_stringR host_header)
:
m_thunk(thunk), m_wqueue(queue), m_host_header(host_header)
{
}
{ }

void
do_push_event_common(Event_Queue::Event&& event)
Expand Down
6 changes: 2 additions & 4 deletions poseidon/easy/easy_https_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ struct Final_Fiber final : Abstract_Fiber
const shptr<Client_Table>& table, const volatile HTTPS_Server_Session* refptr)
:
m_thunk(thunk), m_wtable(table), m_refptr(refptr)
{
}
{ }

virtual
void
Expand Down Expand Up @@ -138,8 +137,7 @@ struct Final_HTTPS_Server_Session final : HTTPS_Server_Session
const Easy_HTTPS_Server::thunk_type& thunk, const shptr<Client_Table>& table)
:
SSL_Socket(move(fd)), m_thunk(thunk), m_wtable(table)
{
}
{ }

void
do_push_event_common(Client_Table::Event_Queue::Event&& event)
Expand Down
3 changes: 1 addition & 2 deletions poseidon/easy/easy_inflator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ struct Final_Inflator final : Inflator
Final_Inflator(zlib_Format format)
:
Inflator(format)
{
}
{ }

virtual
char*
Expand Down
6 changes: 2 additions & 4 deletions poseidon/easy/easy_ssl_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ struct Final_Fiber final : Abstract_Fiber
Final_Fiber(const Easy_SSL_Client::thunk_type& thunk, const shptr<Event_Queue>& queue)
:
m_thunk(thunk), m_wqueue(queue)
{
}
{ }

virtual
void
Expand Down Expand Up @@ -111,8 +110,7 @@ struct Final_SSL_Socket final : SSL_Socket
Final_SSL_Socket(const Easy_SSL_Client::thunk_type& thunk, const shptr<Event_Queue>& queue)
:
m_thunk(thunk), m_wqueue(queue)
{
}
{ }

void
do_push_event_common(Event_Queue::Event&& event)
Expand Down
9 changes: 3 additions & 6 deletions poseidon/easy/easy_ssl_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ struct Final_Fiber final : Abstract_Fiber
const shptr<Client_Table>& table, const volatile SSL_Socket* refptr)
:
m_thunk(thunk), m_wtable(table), m_refptr(refptr)
{
}
{ }

virtual
void
Expand Down Expand Up @@ -130,8 +129,7 @@ struct Final_SSL_Socket final : SSL_Socket
const Easy_SSL_Server::thunk_type& thunk, const shptr<Client_Table>& table)
:
SSL_Socket(move(fd)), m_thunk(thunk), m_wtable(table)
{
}
{ }

void
do_push_event_common(Client_Table::Event_Queue::Event&& event)
Expand Down Expand Up @@ -212,8 +210,7 @@ struct Final_Listen_Socket final : Listen_Socket
Final_Listen_Socket(const Socket_Address& addr, const Easy_SSL_Server::thunk_type& thunk, const shptr<Client_Table>& table)
:
Listen_Socket(addr), m_thunk(thunk), m_wtable(table)
{
}
{ }

virtual
shptr<Abstract_Socket>
Expand Down
6 changes: 2 additions & 4 deletions poseidon/easy/easy_tcp_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ struct Final_Fiber final : Abstract_Fiber
Final_Fiber(const Easy_TCP_Client::thunk_type& thunk, const shptr<Event_Queue>& queue)
:
m_thunk(thunk), m_wqueue(queue)
{
}
{ }

virtual
void
Expand Down Expand Up @@ -111,8 +110,7 @@ struct Final_TCP_Socket final : TCP_Socket
Final_TCP_Socket(const Easy_TCP_Client::thunk_type& thunk, const shptr<Event_Queue>& queue)
:
m_thunk(thunk), m_wqueue(queue)
{
}
{ }

void
do_push_event_common(Event_Queue::Event&& event)
Expand Down
9 changes: 3 additions & 6 deletions poseidon/easy/easy_tcp_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ struct Final_Fiber final : Abstract_Fiber
const shptr<Client_Table>& table, const volatile TCP_Socket* refptr)
:
m_thunk(thunk), m_wtable(table), m_refptr(refptr)
{
}
{ }

virtual
void
Expand Down Expand Up @@ -130,8 +129,7 @@ struct Final_TCP_Socket final : TCP_Socket
const Easy_TCP_Server::thunk_type& thunk, const shptr<Client_Table>& table)
:
TCP_Socket(move(fd)), m_thunk(thunk), m_wtable(table)
{
}
{ }

void
do_push_event_common(Client_Table::Event_Queue::Event&& event)
Expand Down Expand Up @@ -213,8 +211,7 @@ struct Final_Listen_Socket final : Listen_Socket
const Easy_TCP_Server::thunk_type& thunk, const shptr<Client_Table>& table)
:
Listen_Socket(addr), m_thunk(thunk), m_wtable(table)
{
}
{ }

virtual
shptr<Abstract_Socket>
Expand Down
6 changes: 2 additions & 4 deletions poseidon/easy/easy_timer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ struct Final_Fiber final : Abstract_Fiber
Final_Fiber(const Easy_Timer::thunk_type& thunk, const shptr<Event_Queue>& queue)
:
m_thunk(thunk), m_wqueue(queue)
{
}
{ }

virtual
void
Expand Down Expand Up @@ -91,8 +90,7 @@ struct Final_Timer final : Abstract_Timer
Final_Timer(const Easy_Timer::thunk_type& thunk, const shptr<Event_Queue>& queue)
:
m_thunk(thunk), m_wqueue(queue)
{
}
{ }

virtual
void
Expand Down
6 changes: 2 additions & 4 deletions poseidon/easy/easy_udp_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ struct Final_Fiber final : Abstract_Fiber
Final_Fiber(const Easy_UDP_Client::thunk_type& thunk, const shptr<Packet_Queue>& queue)
:
m_thunk(thunk), m_wqueue(queue)
{
}
{ }

virtual
void
Expand Down Expand Up @@ -91,8 +90,7 @@ struct Final_UDP_Socket final : UDP_Socket
Final_UDP_Socket(const Easy_UDP_Client::thunk_type& thunk, const shptr<Packet_Queue>& queue)
:
m_thunk(thunk), m_wqueue(queue)
{
}
{ }

virtual
void
Expand Down
6 changes: 2 additions & 4 deletions poseidon/easy/easy_udp_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ struct Final_Fiber final : Abstract_Fiber
Final_Fiber(const Easy_UDP_Server::thunk_type& thunk, const shptr<Packet_Queue>& queue)
:
m_thunk(thunk), m_wqueue(queue)
{
}
{ }

virtual
void
Expand Down Expand Up @@ -92,8 +91,7 @@ struct Final_UDP_Socket final : UDP_Socket
const Easy_UDP_Server::thunk_type& thunk, const shptr<Packet_Queue>& queue)
:
UDP_Socket(addr), m_thunk(thunk), m_wqueue(queue)
{
}
{ }

virtual
void
Expand Down
6 changes: 2 additions & 4 deletions poseidon/easy/easy_ws_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ struct Final_Fiber final : Abstract_Fiber
Final_Fiber(const Easy_WS_Client::thunk_type& thunk, const shptr<Event_Queue>& queue)
:
m_thunk(thunk), m_wqueue(queue)
{
}
{ }

virtual
void
Expand Down Expand Up @@ -104,8 +103,7 @@ struct Final_WS_Client_Session final : WS_Client_Session
cow_stringR host, cow_stringR path, cow_stringR query)
:
WS_Client_Session(host, path, query), m_thunk(thunk), m_wqueue(queue)
{
}
{ }

void
do_push_event_common(Event_Queue::Event&& event)
Expand Down
6 changes: 2 additions & 4 deletions poseidon/easy/easy_ws_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ struct Final_Fiber final : Abstract_Fiber
const shptr<Client_Table>& table, const volatile WS_Server_Session* refptr)
:
m_thunk(thunk), m_wtable(table), m_refptr(refptr)
{
}
{ }

virtual
void
Expand Down Expand Up @@ -118,8 +117,7 @@ struct Final_WS_Server_Session final : WS_Server_Session
const Easy_WS_Server::thunk_type& thunk, const shptr<Client_Table>& table)
:
TCP_Socket(move(fd)), m_thunk(thunk), m_wtable(table)
{
}
{ }

void
do_push_event_common(Client_Table::Event_Queue::Event&& event)
Expand Down
6 changes: 2 additions & 4 deletions poseidon/easy/easy_wss_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ struct Final_Fiber final : Abstract_Fiber
Final_Fiber(const Easy_WSS_Client::thunk_type& thunk, const shptr<Event_Queue>& queue)
:
m_thunk(thunk), m_wqueue(queue)
{
}
{ }

virtual
void
Expand Down Expand Up @@ -104,8 +103,7 @@ struct Final_WSS_Client_Session final : WSS_Client_Session
cow_stringR host, cow_stringR path, cow_stringR query)
:
WSS_Client_Session(host, path, query), m_thunk(thunk), m_wqueue(queue)
{
}
{ }

void
do_push_event_common(Event_Queue::Event&& event)
Expand Down
6 changes: 2 additions & 4 deletions poseidon/easy/easy_wss_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ struct Final_Fiber final : Abstract_Fiber
const shptr<Client_Table>& table, const volatile WSS_Server_Session* refptr)
:
m_thunk(thunk), m_wtable(table), m_refptr(refptr)
{
}
{ }

virtual
void
Expand Down Expand Up @@ -119,8 +118,7 @@ struct Final_WSS_Server_Session final : WSS_Server_Session
:
SSL_Socket(move(fd)),
m_thunk(thunk), m_wtable(table)
{
}
{ }

void
do_push_event_common(Client_Table::Event_Queue::Event&& event)
Expand Down

0 comments on commit 28fba8b

Please sign in to comment.