From 0e7883dd962f16bbac1dd0b4b6a33de3c19ceca1 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sat, 30 Apr 2022 14:47:39 +0100 Subject: Format enums with an underlying type like classes. --- include/users.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include/users.h') diff --git a/include/users.h b/include/users.h index 484b24156..a249b6da6 100644 --- a/include/users.h +++ b/include/users.h @@ -62,7 +62,8 @@ public: typedef std::shared_ptr Ptr; /** An enumeration of possible types of connect class. */ - enum Type : uint8_t + enum Type + : uint8_t { /** The class defines who is allowed to connect to the server. */ ALLOW = 0, @@ -282,7 +283,8 @@ public: }; /** An enumeration of all possible types of user. */ - enum Type : uint8_t + enum Type + : uint8_t { /** The user is connected to the local server. */ TYPE_LOCAL = 0, -- cgit v1.3.1-10-gc9f91