Browse Source

Change `side` argument from bool to uint8_t in Module::getExpander() and Module::ExpanderChangeEvent.

tags/v2.4.0
Andrew Belt 1 year ago
parent
commit
613f926c35
2 changed files with 4 additions and 4 deletions
  1. +3
    -3
      include/engine/Module.hpp
  2. +1
    -1
      src/engine/Engine.cpp

+ 3
- 3
include/engine/Module.hpp View File

@@ -309,7 +309,7 @@ struct Module {
return rightExpander;
}
/** Returns the left Expander for `side = 0` and the right Expander for `side = 1`. */
Expander& getExpander(int side) {
Expander& getExpander(uint8_t side) {
return side ? rightExpander : leftExpander;
}

@@ -420,8 +420,8 @@ struct Module {
}

struct ExpanderChangeEvent {
/** False for left, true for right. */
bool side;
/** 0 for left, 1 for right. */
uint8_t side;
};
/** Called after an expander is added, removed, or changed on either the left or right side of the Module.
*/


+ 1
- 1
src/engine/Engine.cpp View File

@@ -244,7 +244,7 @@ struct Engine::Internal {
};


static void Engine_updateExpander_NoLock(Engine* that, Module* module, bool side) {
static void Engine_updateExpander_NoLock(Engine* that, Module* module, uint8_t side) {
Module::Expander& expander = side ? module->rightExpander : module->leftExpander;
Module* oldExpanderModule = expander.module;



Loading…
Cancel
Save