From 0529ac97653bc535c5c1db832d258f661d69309c Mon Sep 17 00:00:00 2001 From: HampusM Date: Mon, 16 May 2022 13:49:54 +0200 Subject: refactor(minion): improve network code readability --- minion/src/network_connection.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'minion/src/network_connection.cpp') diff --git a/minion/src/network_connection.cpp b/minion/src/network_connection.cpp index 1f5fdae..3d20113 100644 --- a/minion/src/network_connection.cpp +++ b/minion/src/network_connection.cpp @@ -1,13 +1,16 @@ #include "network_connection.hpp" -NetworkConnection::NetworkConnection(int8_t id) noexcept : _id(id), _is_closed(false) {} +NetworkConnection::NetworkConnection(int8_t connection_id) noexcept + : _id(connection_id), _is_closed(false) +{ +} -int8_t NetworkConnection::id() const noexcept +auto NetworkConnection::id() const noexcept -> int8_t { return _id; } -bool NetworkConnection::is_closed() const noexcept +auto NetworkConnection::is_closed() const noexcept -> bool { return _is_closed; } -- cgit v1.2.3-18-g5258