aboutsummaryrefslogtreecommitdiff
path: root/server-v1/source/EpistmoolServer/Session.hpp
diff options
context:
space:
mode:
authorrtk0c <[email protected]>2022-06-27 00:15:35 +0000
committerrtk0c <[email protected]>2022-06-27 00:15:35 +0000
commit1a8cffddf383872b84d0df9acef5662e02189f2b (patch)
tree5ab6ecb6a0e864db9cda68c563a4e52ae5b7be86 /server-v1/source/EpistmoolServer/Session.hpp
parent3250fc72f906797f113855cf9dde4e7803a66bd9 (diff)
(From git) Update code style, misc clean up
git-svn-id: file:///home/arch/svn/epistmool/trunk@6 71f44415-077c-4ad7-a976-72ddbf76608f
Diffstat (limited to 'server-v1/source/EpistmoolServer/Session.hpp')
-rw-r--r--server-v1/source/EpistmoolServer/Session.hpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/server-v1/source/EpistmoolServer/Session.hpp b/server-v1/source/EpistmoolServer/Session.hpp
index 931c428..7cce3d1 100644
--- a/server-v1/source/EpistmoolServer/Session.hpp
+++ b/server-v1/source/EpistmoolServer/Session.hpp
@@ -9,12 +9,13 @@
namespace Epistmool::Server {
-struct SessionId
-{
+struct SessionId {
int index;
static SessionId makeInvalid();
bool isInvalid() const;
+
+ bool operator==(const SessionId&) const = default;
};
class Session
@@ -26,7 +27,7 @@ private:
SessionId mSessionId;
public:
- Session(SessionId id);
+ explicit Session(SessionId id);
SessionId getSessionId() const;
const std::vector<ConnectionId>& getConnections() const;