diff options
| author | 2022-09-30 20:21:59 +0100 | |
|---|---|---|
| committer | 2022-09-30 20:21:59 +0100 | |
| commit | e4efd41a99e1237b61336555af0398ef5f634a4d (patch) | |
| tree | 33d556a2347e0e1531546cf0d661b40512c3b620 /src/modules/m_codepage.cpp | |
| parent | Use auto instead of type names where the type is obvious. (diff) | |
Use a global typedef for representing a character set.
Diffstat (limited to 'src/modules/m_codepage.cpp')
| -rw-r--r-- | src/modules/m_codepage.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/modules/m_codepage.cpp b/src/modules/m_codepage.cpp index e6ff7a919..350ec617c 100644 --- a/src/modules/m_codepage.cpp +++ b/src/modules/m_codepage.cpp @@ -88,13 +88,11 @@ class SingleByteCodepage final : public Codepage { private: - typedef std::bitset<UCHAR_MAX + 1> AllowedChars; - // The characters which are allowed in nicknames. - AllowedChars allowedchars; + CharState allowedchars; // The characters which are allowed at the front of a nickname. - AllowedChars allowedfrontchars; + CharState allowedfrontchars; public: AllowCharacterResult AllowCharacter(uint32_t character, bool front) override |
