diff options
author | Josh Soref <2119212+jsoref@users.noreply.github.com> | 2021-06-17 10:02:30 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-17 15:02:30 +0100 |
commit | fd88b756fc20dedea15a8a08c21e8f7af6612e4e (patch) | |
tree | 81faaface4f605d329848b0c9b7dae8c7dad5b7f /src/modulemanager.cpp | |
parent | 8d1bc95faf095984dcc39b4c51de5bc5051b9a12 (diff) |
Fix various spelling issues (#274).
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>.
Diffstat (limited to 'src/modulemanager.cpp')
-rw-r--r-- | src/modulemanager.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
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]); } } |