diff options
| author | 2021-08-17 19:46:35 +0100 | |
|---|---|---|
| committer | 2021-08-17 19:46:35 +0100 | |
| commit | 0573fb9ed1c9ae3ebac174b60ee0cdc0f5111d02 (patch) | |
| tree | f29ec8bb3fe51c93e274c4ca4355f510f65d483b /src/modules.cpp | |
| parent | Merge branch 'insp3' into master. (diff) | |
Fix the Detach method which got borked during a rebase.
Diffstat (limited to 'src/modules.cpp')
| -rw-r--r-- | src/modules.cpp | 7 |
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) |
