Skip to content

Commit 9c2f6c3

Browse files
authored
Merge pull request #192 from tne-lab/development
Some more Pulse Pal fixes
2 parents f020fe3 + 0113eb6 commit 9c2f6c3

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

Source/Plugins/PulsePalOutput/PulsePalOutputCanvas.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ void PulsePalOutputCanvas::paint (Graphics& g)
7676
else
7777
pulsePalLabel->setText(String("Pulse Pal: ") += String("NOT CONNECTED"), dontSendNotification);
7878

79-
for (int i; i < PULSEPALCHANNELS; i++)
79+
for (int i = 0; i < PULSEPALCHANNELS; i++)
8080
{
8181
g.setColour(Colours::grey);
8282
g.fillRoundedRectangle(0.005*getWidth() + 0.25*i*getWidth(), 0.1*getHeight(), 0.23*getWidth(), 0.89*getHeight(), 4.0f);
@@ -88,7 +88,7 @@ void PulsePalOutputCanvas::resized()
8888
{
8989
pulsePalLabel->setBounds(0.01*getWidth(), 0.02*getHeight(), 0.5*getWidth(),0.04*getHeight());
9090

91-
for (int i; i < PULSEPALCHANNELS; i++)
91+
for (int i = 0; i < PULSEPALCHANNELS; i++)
9292
{
9393
channelLabel[i]->setBounds(0.01*getWidth() + 0.25*i*getWidth(), 0.1*getHeight(), 0.1*getWidth(),0.04*getHeight());
9494

@@ -130,7 +130,7 @@ void PulsePalOutputCanvas::resized()
130130

131131
void PulsePalOutputCanvas::buttonClicked(Button* button)
132132
{
133-
for (int i; i < PULSEPALCHANNELS; i++)
133+
for (int i = 0; i < PULSEPALCHANNELS; i++)
134134
{
135135
if (button == biphasicButton[i])
136136
{
@@ -238,7 +238,7 @@ bool PulsePalOutputCanvas::keyPressed(const KeyPress &key, Component *originatin
238238

239239
void PulsePalOutputCanvas::labelTextChanged(Label *label)
240240
{
241-
for (int i; i < PULSEPALCHANNELS; i++)
241+
for (int i = 0; i < PULSEPALCHANNELS; i++)
242242
{
243243
if (label == phase1EditLabel[i])
244244
{
@@ -402,15 +402,15 @@ void PulsePalOutputCanvas::labelTextChanged(Label *label)
402402

403403
void PulsePalOutputCanvas::comboBoxChanged(ComboBox *combobox)
404404
{
405-
for (int i; i < PULSEPALCHANNELS; i++)
405+
for (int i = 0; i < PULSEPALCHANNELS; i++)
406406
if (combobox == triggerMode[i])
407407
processor->setTriggerMode(i, combobox->getSelectedId() - 1);
408408
}
409409

410410
void PulsePalOutputCanvas::initButtons()
411411
{
412412

413-
for (int i; i < PULSEPALCHANNELS; i++)
413+
for (int i = 0; i < PULSEPALCHANNELS; i++)
414414
{
415415
ScopedPointer<UtilityButton> biph = new UtilityButton("biphasic", Font("Small Text", 20, Font::plain));
416416
biph->setRadius(3.0f);
@@ -493,7 +493,7 @@ void PulsePalOutputCanvas::initLabels()
493493
pulsePalLabel->setColour(Label::textColourId, labelColour);
494494
addAndMakeVisible(pulsePalLabel);
495495

496-
for (int i; i < PULSEPALCHANNELS; i++)
496+
for (int i = 0; i < PULSEPALCHANNELS; i++)
497497
{
498498
ScopedPointer<Label> chan = new Label("s_phase1", "Channel "+String(i+1));
499499
chan->setFont(Font(30));

0 commit comments

Comments
 (0)