From 56bc9e12ee16e3cbf20753c7fab0188a34e7d9ee Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 20 Oct 2013 13:45:47 +0200 Subject: [PATCH] ClientInternal: convert anonymous enum to constexpr --- src/ClientInternal.hxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/ClientInternal.hxx b/src/ClientInternal.hxx index 9c70ec2e2..c64310093 100644 --- a/src/ClientInternal.hxx +++ b/src/ClientInternal.hxx @@ -24,10 +24,8 @@ #include "Client.hxx" #include "command/CommandResult.hxx" -enum { - CLIENT_MAX_SUBSCRIPTIONS = 16, - CLIENT_MAX_MESSAGES = 64, -}; +static constexpr unsigned CLIENT_MAX_SUBSCRIPTIONS = 16; +static constexpr unsigned CLIENT_MAX_MESSAGES = 64; extern const class Domain client_domain;