summaryrefslogtreecommitdiff
path: root/minion/src/network_connection.hpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-05-16 13:49:54 +0200
committerHampusM <hampus@hampusmat.com>2022-05-16 13:50:31 +0200
commit0529ac97653bc535c5c1db832d258f661d69309c (patch)
tree48c0b6ded9d82e01d5e96f12c66e0a9b6d385618 /minion/src/network_connection.hpp
parent3ede86caf948d6e989fd056ea4f8d8c588939971 (diff)
refactor(minion): improve network code readability
Diffstat (limited to 'minion/src/network_connection.hpp')
-rw-r--r--minion/src/network_connection.hpp6
1 files changed, 3 insertions, 3 deletions
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;