]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Mark ModeHandler::GetModeChar() and ModeWatcher::GetModeType() as const
authorAttila Molnar <attilamolnar@hush.com>
Mon, 29 Aug 2016 12:50:59 +0000 (14:50 +0200)
committerAttila Molnar <attilamolnar@hush.com>
Mon, 29 Aug 2016 12:50:59 +0000 (14:50 +0200)
include/mode.h
src/mode.cpp

index 64829845f805c503979f912901c241b9a6d242de..09382237262d455a32cf13a0b46458ae9eda731f 100644 (file)
@@ -214,7 +214,7 @@ class CoreExport ModeHandler : public ServiceProvider
         * Returns the mode character this handler handles.
         * @return The mode character
         */
-       inline char GetModeChar() { return mode; }
+       char GetModeChar() const { return mode; }
 
        /** Return the id of this mode which is used in User::modes and
         * Channel::modes as the index to determine whether a mode is set.
@@ -450,7 +450,7 @@ class CoreExport ModeWatcher : public classbase
         * Get the mode type being watched
         * @return The mode type being watched (user or channel)
         */
-       ModeType GetModeType();
+       ModeType GetModeType() const { return m_type; }
 
        /**
         * Before the mode character is processed by its handler, this method will be called.
index 8d3d9ccfa95319a3f58243c95cd2f4973fd95b69..beea6d3a0287bd682acbac0f23a9675cd00ef772 100644 (file)
@@ -144,11 +144,6 @@ ModeWatcher::~ModeWatcher()
        ServerInstance->Modes->DelModeWatcher(this);
 }
 
-ModeType ModeWatcher::GetModeType()
-{
-       return m_type;
-}
-
 bool ModeWatcher::BeforeMode(User*, User*, Channel*, std::string&, bool)
 {
        return true;