summaryrefslogtreecommitdiff
path: root/src/session.hpp
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2025-03-14 11:11:54 +0800
committerlittleblack111 <littleblack11111@gmail.com>2025-03-20 23:45:00 +0800
commit60e0c64717e1620d471640c066b328b7199d51e4 (patch)
treef1f805005fa2be1c69d127bf7fe1bd772ccb3501 /src/session.hpp
parent3a51e49c2e296a53ae9d61e7fc62b505b9b42d23 (diff)
cleanup: explicit const and return original instead of dupe for perf
Diffstat (limited to 'src/session.hpp')
-rw-r--r--src/session.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/session.hpp b/src/session.hpp
index 3571ecb..ddbfff9 100644
--- a/src/session.hpp
+++ b/src/session.hpp
@@ -21,7 +21,7 @@ class CSession {
void sanitize();
};
- std::string getName();
+ const std::string &getName() const;
void setSelf(std::pair<std::jthread, std::shared_ptr<CSession>> *self);
std::unique_ptr<SRecvData> read();