From fd88b756fc20dedea15a8a08c21e8f7af6612e4e Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Thu, 17 Jun 2021 10:02:30 -0400 Subject: Fix various spelling issues (#274). Signed-off-by: Josh Soref . --- src/modulemanager.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/modulemanager.cpp') diff --git a/src/modulemanager.cpp b/src/modulemanager.cpp index 96e49fdbd..23b35e94e 100644 --- a/src/modulemanager.cpp +++ b/src/modulemanager.cpp @@ -53,7 +53,7 @@ void ModuleManager::CleanupRuntimeDirectory() /** * Copy the module from the modules folder to the runtime folder. * This will prevent module updates while the modules is loaded from - * triggering a segfault, as the actaul file in use will be in the + * triggering a segfault, as the actual file in use will be in the * runtime folder. * @param name the name of the module to copy * @param output the destination to copy the module to @@ -489,17 +489,17 @@ bool ModuleManager::SetPriority(Module *mod, Implementation i, Priority s, Modul if (swap && swap_pos != source) { /* Suggestion from Phoenix, "shuffle" the modules to better retain call order */ - int incrmnt = 1; + int increment = 1; if (source > swap_pos) - incrmnt = -1; + increment = -1; - for (unsigned j = source; j != swap_pos; j += incrmnt) + for (unsigned j = source; j != swap_pos; j += increment) { - if (j + incrmnt > EventHandlers[i].size() - 1 || (!j && incrmnt == -1)) + if (j + increment > EventHandlers[i].size() - 1 || (!j && increment == -1)) continue; - std::swap(EventHandlers[i][j], EventHandlers[i][j + incrmnt]); + std::swap(EventHandlers[i][j], EventHandlers[i][j + increment]); } } -- cgit