aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGravatar Sadie Powell2022-09-30 20:21:59 +0100
committerGravatar Sadie Powell2022-09-30 20:21:59 +0100
commite4efd41a99e1237b61336555af0398ef5f634a4d (patch)
tree33d556a2347e0e1531546cf0d661b40512c3b620 /include
parentUse auto instead of type names where the type is obvious. (diff)
Use a global typedef for representing a character set.
Diffstat (limited to 'include')
-rw-r--r--include/modules/who.h2
-rw-r--r--include/typedefs.h3
2 files changed, 3 insertions, 2 deletions
diff --git a/include/modules/who.h b/include/modules/who.h
index 20c59d4c9..48908e98e 100644
--- a/include/modules/who.h
+++ b/include/modules/who.h
@@ -70,8 +70,6 @@ public:
class Who::Request
{
public:
- typedef std::bitset<UCHAR_MAX + 1> CharState;
-
/** The flags for matching users to include. */
CharState flags;
diff --git a/include/typedefs.h b/include/typedefs.h
index 8cac70d5d..80fc43c7d 100644
--- a/include/typedefs.h
+++ b/include/typedefs.h
@@ -123,6 +123,9 @@ typedef XLineContainer::iterator ContainerIter;
*/
typedef XLineLookup::iterator LookupIter;
+/** A bitset of characters which are enabled/set. */
+typedef std::bitset<UCHAR_MAX + 1> CharState;
+
namespace Stats
{
class Context;