@@ -95,7 +95,7 @@ struct E1MidiOutput : OrestesOneOutput {
9595 /* *
9696 * Inform E1 that a change module action is starting
9797 */
98- void changeE1Module (const std::string moduleDisplayName, float moduleY, float moduleX, int maxNprnId, std::array<std::string, MAX_PAGES> pageLabels) {
98+ void changeE1Module (const std::string moduleDisplayName, float moduleY, float moduleX, int maxNprnId, const std::array<std::string, MAX_PAGES>& pageLabels) {
9999 // Truncate module name to keep string length less than 128 characters
100100 auto raw = string::f (" changeE1Module(\" %s\" , %g, %g, %d)" , moduleDisplayName.substr (0 , 50 ).c_str (), moduleY, moduleX, maxNprnId);
101101 stripUnicode (raw);
@@ -442,7 +442,7 @@ struct OrestesOneModule : Module {
442442 dsp::ClockDivider indicatorDivider;
443443
444444 /* * [Stored to Json] */
445- std::array<std::string, MAX_PAGES> pageLabels{" " , " " , " " , " " , " " , " " }; // Current mapped module control page labels
445+ std::array<std::string, MAX_PAGES> pageLabels = {" " , " " , " " , " " , " " , " " }; // Current mapped module control page labels
446446
447447 // MEM-
448448 // Pointer of the MEM's attribute
@@ -1136,7 +1136,7 @@ struct OrestesOneModule : Module {
11361136 }
11371137 }
11381138
1139- void changeE1Module (const std::string moduleName, float moduleY, float moduleX, int maxNprnId, std::array<std::string, MAX_PAGES> pageLabels) {
1139+ void changeE1Module (const std::string moduleName, float moduleY, float moduleX, int maxNprnId, const std::array<std::string, MAX_PAGES>& pageLabels) {
11401140 // DEBUG("changeE1Module to %s", moduleName);
11411141 midiCtrlOutput.changeE1Module (moduleName, moduleY, moduleX, maxNprnId, pageLabels);
11421142 }
0 commit comments