From 7bea24293aae2edb54f748101b45f52aca027a96 Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Sun, 15 Feb 2015 17:58:47 +0100 Subject: Eliminate constant return value of the all events version of ModuleManager::SetPriority() --- include/modules.h | 2 +- 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 * 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) -- cgit v1.2.3