Skip to content

Commit

Permalink
be a bit more explicit regarding "module" pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
mzuther committed Jul 18, 2020
1 parent 7c7892b commit 8dcfd19
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
22 changes: 11 additions & 11 deletions src/ProtoFaustWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@

// "repetitive" takes on a whole new meaning in this file ...

ProtoFaustWidget::ProtoFaustWidget( ProtoFaust* module ) :
_module( module )
ProtoFaustWidget::ProtoFaustWidget( ProtoFaust* currentModule ) :
_module( currentModule )
{
setModule( module );
setModule( _module );
setPanel( APP->window->loadSvg(
asset::plugin( pluginInstance, "res/ProtoFaust.svg" ) ) );

Expand Down Expand Up @@ -311,49 +311,49 @@ void ProtoFaustWidget::addWidget( int widgetType,
case TOGGLE_SWITCH:

addParam( createParamCentered<CKSS>(
pos_converted, module, parameterId ) );
pos_converted, _module, parameterId ) );
break;

case THREE_WAY_SWITCH:

addParam( createParamCentered<CKSSThree>(
pos_converted, module, parameterId ) );
pos_converted, _module, parameterId ) );
break;

case PUSH_BUTTON:

addParam( createParamCentered<BefacoPush>(
pos_converted, module, parameterId ) );
pos_converted, _module, parameterId ) );
break;

case KNOB_WHITE:

addParam( createParamCentered<Davies1900hLargeWhiteKnob>(
pos_converted, module, parameterId ) );
pos_converted, _module, parameterId ) );
break;

case KNOB_RED:

addParam( createParamCentered<Davies1900hLargeRedKnob>(
pos_converted, module, parameterId ) );
pos_converted, _module, parameterId ) );
break;

case PORT_INPUT:

addInput( createInputCentered<CL1362Port>(
pos_converted, module, parameterId ) );
pos_converted, _module, parameterId ) );
break;

case PORT_OUTPUT:

addOutput( createOutputCentered<CL1362Port>(
pos_converted, module, parameterId ) );
pos_converted, _module, parameterId ) );
break;

case LED_RGB:

addChild( createLightCentered<MediumLight<RedGreenBlueLight>>(
pos_converted, module, parameterId ) );
pos_converted, _module, parameterId ) );
break;

case SCREW:
Expand Down
2 changes: 1 addition & 1 deletion src/ProtoFaustWidget.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ struct ProtoFaustWidget : ModuleWidget {
NUM_GENERIC_IDS
};

explicit ProtoFaustWidget( ProtoFaust* module );
explicit ProtoFaustWidget( ProtoFaust* currentModule );

private:
void addWidget( int widgetType,
Expand Down

0 comments on commit 8dcfd19

Please sign in to comment.