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.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'minion/src/network_connection.hpp') diff --git a/minion/src/network_connection.hpp b/minion/src/network_connection.hpp index 89094b8..4cefb39 100644 --- a/minion/src/network_connection.hpp +++ b/minion/src/network_connection.hpp @@ -5,11 +5,11 @@ class NetworkConnection { public: - NetworkConnection(int8_t id) noexcept; + explicit NetworkConnection(int8_t connection_id) noexcept; - int8_t id() const noexcept; + auto id() const noexcept -> int8_t; - bool is_closed() const noexcept; + auto is_closed() const noexcept -> bool; void set_is_closed(bool is_closed) noexcept; -- cgit v1.2.3-18-g5258