aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Sadie Powell2021-08-17 19:46:35 +0100
committerGravatar Sadie Powell2021-08-17 19:46:35 +0100
commit0573fb9ed1c9ae3ebac174b60ee0cdc0f5111d02 (patch)
treef29ec8bb3fe51c93e274c4ca4355f510f65d483b /src
parentMerge branch 'insp3' into master. (diff)
Fix the Detach method which got borked during a rebase.
Diffstat (limited to 'src')
-rw-r--r--src/modules.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/modules.cpp b/src/modules.cpp
index 40fad434d..6e77c5edf 100644
--- a/src/modules.cpp
+++ b/src/modules.cpp
@@ -208,12 +208,19 @@ bool ModuleManager::Detach(Implementation i, Module* mod)
return stdalgo::erase(EventHandlers[i], mod);
}
+
void ModuleManager::Attach(Implementation* i, Module* mod, size_t sz)
{
for (size_t n = 0; n < sz; ++n)
Attach(i[n], mod);
}
+void ModuleManager::Detach(Implementation* i, Module* mod, size_t sz)
+{
+ for (size_t n = 0; n < sz; ++n)
+ Detach(i[n], mod);
+}
+
void ModuleManager::AttachAll(Module* mod)
{
for (size_t i = 0; i != I_END; ++i)