From 2b2d37ff506dd02f546585fa345ceb56e8007697 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sun, 31 Jan 2021 14:00:34 +0000 Subject: Make MyClass private and move everything to GetClass. --- include/users.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'include') diff --git a/include/users.h b/include/users.h index 350f6b2f3..cf4d9d395 100644 --- a/include/users.h +++ b/include/users.h @@ -663,6 +663,9 @@ typedef unsigned int already_sent_t; class CoreExport LocalUser : public User, public insp::intrusive_list_node { private: + /** The connect class this user is in. */ + std::shared_ptr connectclass; + /** Message list, can be passed to the two parameter Send(). */ static ClientProtocol::MessageList sendmsglist; @@ -712,14 +715,10 @@ class CoreExport LocalUser : public User, public insp::intrusive_list_node MyClass; - /** Get the connect class which this user belongs to. * @return A pointer to this user's connect class. */ - std::shared_ptr GetClass() const { return MyClass; } + std::shared_ptr GetClass() const { return connectclass; } /** Call this method to find the matching \ for a user, and to check them against it. */ -- cgit v1.3.1-10-gc9f91