From fb256d473ed33410d11be56244c565884c2f14bb Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Wed, 21 May 2025 18:13:30 +0800 Subject: internal: prefer direct pointers instead of (uintptr_t) converted ones --- src/session.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/session.cpp') diff --git a/src/session.cpp b/src/session.cpp index 07b89f3..d88af2f 100644 --- a/src/session.cpp +++ b/src/session.cpp @@ -196,7 +196,7 @@ bool CSession::registerSession() { log(LOG, "Client {} registered as: {}", m_ip, m_name); - g_pSessionManager->broadcast(NFormatter::fmt(NONEWLINE, "{} has joined the chat", m_name), (uintptr_t)this); + g_pSessionManager->broadcast(NFormatter::fmt(NONEWLINE, "{} has joined the chat", m_name), this); setDeaf(false); return true; -- cgit v1.2.3