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.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/session.hpp') 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> *self); std::unique_ptr read(); -- cgit v1.2.3