diff options
author | Attila Molnar <attilamolnar@hush.com> | 2015-02-15 17:58:47 +0100 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2015-02-15 17:58:47 +0100 |
commit | 7bea24293aae2edb54f748101b45f52aca027a96 (patch) | |
tree | cdfc0d6f31294a6735be9a382f52155774930e65 | |
parent | bfc1abbcad598fcbc6921fa72b950144b13e059f (diff) |
Eliminate constant return value of the all events version of ModuleManager::SetPriority()
-rw-r--r-- | include/modules.h | 2 | ||||
-rw-r--r-- | src/modules.cpp | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/include/modules.h b/include/modules.h index 62078bbfa..41dec1194 100644 --- a/include/modules.h +++ b/include/modules.h @@ -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(). diff --git a/src/modules.cpp b/src/modules.cpp index 78e80d63c..e1fb605c0 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -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) |