diff --git a/include/rack.hpp b/include/rack.hpp index 6177612e..d3e78007 100644 --- a/include/rack.hpp +++ b/include/rack.hpp @@ -36,15 +36,15 @@ Model *createModel(std::string manufacturer, std::string slug, std::string name, } template -Widget *createScrew(Vec pos) { - Widget *screw = new TScrew(); +TScrew *createScrew(Vec pos) { + TScrew *screw = new TScrew(); screw->box.pos = pos; return screw; } template -ParamWidget *createParam(Vec pos, Module *module, int paramId, float minValue, float maxValue, float defaultValue) { - ParamWidget *param = new TParamWidget(); +TParamWidget *createParam(Vec pos, Module *module, int paramId, float minValue, float maxValue, float defaultValue) { + TParamWidget *param = new TParamWidget(); param->box.pos = pos; param->module = module; param->paramId = paramId; @@ -54,8 +54,8 @@ ParamWidget *createParam(Vec pos, Module *module, int paramId, float minValue, f } template -Port *createInput(Vec pos, Module *module, int inputId) { - Port *port = new TPort(); +TPort *createInput(Vec pos, Module *module, int inputId) { + TPort *port = new TPort(); port->box.pos = pos; port->module = module; port->type = Port::INPUT; @@ -64,8 +64,8 @@ Port *createInput(Vec pos, Module *module, int inputId) { } template -Port *createOutput(Vec pos, Module *module, int outputId) { - Port *port = new TPort(); +TPort *createOutput(Vec pos, Module *module, int outputId) { + TPort *port = new TPort(); port->box.pos = pos; port->module = module; port->type = Port::OUTPUT; @@ -74,8 +74,8 @@ Port *createOutput(Vec pos, Module *module, int outputId) { } template -ModuleLightWidget *createLight(Vec pos, Module *module, int firstLightId) { - ModuleLightWidget *light = new TModuleLightWidget(); +TModuleLightWidget *createLight(Vec pos, Module *module, int firstLightId) { + TModuleLightWidget *light = new TModuleLightWidget(); light->box.pos = pos; light->module = module; light->firstLightId = firstLightId;