client/Message: make valid_channel_char() constexpr
This commit is contained in:
@@ -19,10 +19,8 @@
|
|||||||
|
|
||||||
#include "ClientMessage.hxx"
|
#include "ClientMessage.hxx"
|
||||||
#include "util/CharUtil.hxx"
|
#include "util/CharUtil.hxx"
|
||||||
#include "Compiler.h"
|
|
||||||
|
|
||||||
gcc_const
|
static constexpr bool
|
||||||
static bool
|
|
||||||
valid_channel_char(const char ch) noexcept
|
valid_channel_char(const char ch) noexcept
|
||||||
{
|
{
|
||||||
return IsAlphaNumericASCII(ch) ||
|
return IsAlphaNumericASCII(ch) ||
|
||||||
|
Reference in New Issue
Block a user