From de6d4dbd1e8845e08c2d87cd89a919e5b21ba619 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Mon, 21 Jun 2021 16:47:06 -0400 Subject: Fix various spelling issues (#1883). Signed-off-by: Josh Soref --- src/modules.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/modules.cpp') diff --git a/src/modules.cpp b/src/modules.cpp index 7cae3818c..779d15218 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -55,7 +55,7 @@ Version::Version(const std::string &desc, int flags, const std::string& linkdata { } -// These declarations define the behavours of the base class Module (which does nothing at all) +// These declarations define the behaviours of the base class Module (which does nothing at all) Module::Module() : ModuleDLLManager(NULL) @@ -318,17 +318,17 @@ swap_now: if (prioritizationState == PRIO_STATE_LAST) prioritizationState = PRIO_STATE_AGAIN; /* Suggestion from Phoenix, "shuffle" the modules to better retain call order */ - int incrmnt = 1; + int increment = 1; if (my_pos > swap_pos) - incrmnt = -1; + increment = -1; - for (unsigned int j = my_pos; j != swap_pos; j += incrmnt) + for (unsigned int j = my_pos; j != swap_pos; j += increment) { - if ((j + incrmnt > EventHandlers[i].size() - 1) || ((incrmnt == -1) && (j == 0))) + if ((j + increment > EventHandlers[i].size() - 1) || ((increment == -1) && (j == 0))) continue; - std::swap(EventHandlers[i][j], EventHandlers[i][j+incrmnt]); + std::swap(EventHandlers[i][j], EventHandlers[i][j+increment]); } } @@ -451,7 +451,7 @@ void ModuleManager::UnloadAll() { /* We do this more than once, so that any service providers get a * chance to be unhooked by the modules using them, but then get - * a chance to be removed themsleves. + * a chance to be removed themselves. * * Note: this deliberately does NOT delete the DLLManager objects */ -- cgit v1.3.1-10-gc9f91