mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-17 03:59:19 +02:00
refactor(sonar): initialise members in initialiser lists or declarations (cpp:S3230)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -30,9 +30,7 @@ void network::connection::set_handler(std::function<void (const message &)> hand
|
||||
message_handler = handler;
|
||||
}
|
||||
|
||||
network::connection::connection(bool client, size_t counter) {
|
||||
packet_counter = counter;
|
||||
is_client = client;
|
||||
network::connection::connection(bool client, size_t counter) : is_client(client), packet_counter(counter) {
|
||||
state = AWAITING_HELLO;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user