diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-03-14 11:11:54 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-03-20 23:45:00 +0800 |
| commit | 60e0c64717e1620d471640c066b328b7199d51e4 (patch) | |
| tree | f1f805005fa2be1c69d127bf7fe1bd772ccb3501 /src/session.cpp | |
| parent | 3a51e49c2e296a53ae9d61e7fc62b505b9b42d23 (diff) | |
cleanup: explicit const and return original instead of dupe for perf
Diffstat (limited to 'src/session.cpp')
| -rw-r--r-- | src/session.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |
