Skip to content

Commit

Permalink
LogCategoryId and LogId now use uint16_t instead of unsigned as under…
Browse files Browse the repository at this point in the history
…lying type (reduce size type)
  • Loading branch information
jonathanpoelen committed Feb 15, 2024
1 parent 64fcaf7 commit c9ee653
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/acl/auth_api.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include "utils/sugar/array_view.hpp"


enum class LogId : unsigned;
enum class LogId : uint16_t;

struct KVLog
{
Expand Down
4 changes: 2 additions & 2 deletions src/core/log_id.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include "utils/sugar/zstring_view.hpp"


enum class LogCategoryId
enum class LogCategoryId : uint16_t
{
None,
Clipboard,
Expand Down Expand Up @@ -138,7 +138,7 @@ using LogCategoryFlags = utils::flags_t<LogCategoryId>;
f(SESSION_INVITE_GUEST_VIEW_CHANGED, SessionSharing)


enum class LogId : unsigned
enum class LogId : uint16_t
{
#define f(x, cat) x,
X_LOG_ID(f)
Expand Down

0 comments on commit c9ee653

Please sign in to comment.