From 60e0c64717e1620d471640c066b328b7199d51e4 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Fri, 14 Mar 2025 11:11:54 +0800 Subject: cleanup: explicit const and return original instead of dupe for perf --- 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 070562c..df4e506 100644 --- a/src/session.cpp +++ b/src/session.cpp @@ -186,7 +186,7 @@ bool CSession::write(const std::string &msg) { return write("{}", msg); } -std::string CSession::getName() { +const std::string &CSession::getName() const { return m_name; } -- cgit v1.2.3