diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-05-21 18:13:30 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-05-21 22:49:45 +0800 |
| commit | fb256d473ed33410d11be56244c565884c2f14bb (patch) | |
| tree | 728dfaf4f6d29638b638a931cf8afca4e699b98b /src/sessionManager.hpp | |
| parent | 815c3955dbd9ff7e1a427cf4bc66da38b581b178 (diff) | |
internal: prefer direct pointers instead of (uintptr_t) converted ones
Diffstat (limited to 'src/sessionManager.hpp')
| -rw-r--r-- | src/sessionManager.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sessionManager.hpp b/src/sessionManager.hpp index 6e946d6..6d3750e 100644 --- a/src/sessionManager.hpp +++ b/src/sessionManager.hpp @@ -15,7 +15,7 @@ class CSessionManager { std::pair<std::jthread, std::shared_ptr<CSession>> *newSession(); void run(); - void broadcast(const std::string &msg, std::optional<uintptr_t> self = std::nullopt) const; // second param only specified when we want to exclude the sender + void broadcast(const std::string &msg, std::optional<const CSession* const> self = std::nullopt) const; // second param only specified when we want to exclude the sender void kick(CSession *session, const bool kill = false, const std::string &reason = ""); void kick(std::pair<std::jthread, std::shared_ptr<CSession>> *session, const bool kill = false, const std::string &reason = ""); void addSession(const CSession &session); |
