]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Eliminate constant return value of the all events version of ModuleManager::SetPriority()
authorAttila Molnar <attilamolnar@hush.com>
Sun, 15 Feb 2015 16:58:47 +0000 (17:58 +0100)
committerAttila Molnar <attilamolnar@hush.com>
Sun, 15 Feb 2015 16:58:47 +0000 (17:58 +0100)
include/modules.h
src/modules.cpp

index 62078bbfa893bb3179f12274d2871c99b18043ab..41dec1194c4046a54e49462fea4e61f38b3597bb 100644 (file)
@@ -1124,7 +1124,7 @@ class CoreExport ModuleManager : public fakederef<ModuleManager>
         * SetPriority method for this, where you may specify other modules to
         * be prioritized against.
         */
-       bool SetPriority(Module* mod, Priority s);
+       void SetPriority(Module* mod, Priority s);
 
        /** Attach an event to a module.
         * You may later detatch the event with ModuleManager::Detach().
index 78e80d63caafbc6ebf645d5a1c0e7e5622df6139..e1fb605c0a9a73f78cbe772e6ce466b0ce507bb2 100644 (file)
@@ -199,12 +199,10 @@ void ModuleManager::DetachAll(Module* mod)
                Detach((Implementation)n, mod);
 }
 
-bool ModuleManager::SetPriority(Module* mod, Priority s)
+void ModuleManager::SetPriority(Module* mod, Priority s)
 {
        for (size_t n = 0; n != I_END; ++n)
                SetPriority(mod, (Implementation)n, s);
-
-       return true;
 }
 
 bool ModuleManager::SetPriority(Module* mod, Implementation i, Priority s, Module* which)