Skip to content

Commit 69f185a

Browse files
committed
Addressed some compiler warnings
1 parent 0fb8ffa commit 69f185a

4 files changed

Lines changed: 13 additions & 13 deletions

File tree

Source/Plugins/NetworkEvents/NetworkEvents.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ void NetworkEvents::postTimestamppedStringToMidiBuffer(StringTS s, MidiBuffer& e
298298
(uint8) s.len+1,//+8,
299299
msg_with_ts);
300300

301-
delete msg_with_ts;
301+
delete[] msg_with_ts;
302302
}
303303

304304
void NetworkEvents::simulateStopRecord()
@@ -594,7 +594,7 @@ void NetworkEvents::run()
594594

595595

596596
zmq_close(responder);
597-
delete buffer;
597+
delete[] buffer;
598598
threadRunning = false;
599599
return;
600600
#endif

Source/Plugins/SpikeSorter/SpikeSortBoxes.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2029,7 +2029,7 @@ void PCAjob::computeCov()
20292029
cov[j][i] = sum / (dim-1);
20302030
}
20312031
}
2032-
delete mean;
2032+
delete[] mean;
20332033

20342034
// delete covariances
20352035
//for (int k = 0; k < dim; k++)

Source/Processors/DataThreads/RhythmNode/RHD2000Editor.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1437,10 +1437,10 @@ void AudioInterface::paint(Graphics& g)
14371437
// Clock Divider options
14381438
ClockDivideInterface::ClockDivideInterface(RHD2000Thread* board_,
14391439
RHD2000Editor* editor_) :
1440-
board(board_)
1441-
, editor(editor_)
1442-
, name("Clock Divider")
1440+
name("Clock Divider")
14431441
, lastDivideRatioString("1")
1442+
, board(board_)
1443+
, editor(editor_)
14441444
, actualDivideRatio(1)
14451445

14461446
{

Source/Processors/Editors/ChannelSelector.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,7 @@ void ChannelSelector::buttonClicked(Button* button)
684684
selectButtonParam->removeListener(this);
685685
deselectButtonParam->removeListener(this);
686686
std::vector<int> getBoxList;
687-
int fa, lim, comd, i, j;
687+
int fa, lim, comd, i;
688688
getBoxList = paramBox->getBoxInfo(parameterButtons.size());
689689
if (getBoxList.size() < 3)
690690
{
@@ -712,7 +712,7 @@ void ChannelSelector::buttonClicked(Button* button)
712712
selectButtonRecord->removeListener(this);
713713
deselectButtonRecord->removeListener(this);
714714
std::vector<int> getBoxList;
715-
int fa, lim, comd, i, j;
715+
int fa, lim, comd, i;
716716
getBoxList = recordBox->getBoxInfo(recordButtons.size());
717717
if (getBoxList.size() < 3)
718718
{
@@ -740,7 +740,7 @@ void ChannelSelector::buttonClicked(Button* button)
740740
selectButtonAudio->removeListener(this);
741741
deselectButtonAudio->removeListener(this);
742742
std::vector<int> getBoxList;
743-
int fa, lim, comd, i, j;
743+
int fa, lim, comd, i;
744744
getBoxList = audioBox->getBoxInfo(audioButtons.size());
745745
if (getBoxList.size() < 3)
746746
{
@@ -768,7 +768,7 @@ void ChannelSelector::buttonClicked(Button* button)
768768
selectButtonParam->removeListener(this);
769769
deselectButtonParam->removeListener(this);
770770
std::vector<int> getBoxList;
771-
int fa, lim, comd, i, j;
771+
int fa, lim, comd, i;
772772
getBoxList = paramBox->getBoxInfo(parameterButtons.size());
773773
if (getBoxList.size() < 3)
774774
{
@@ -796,7 +796,7 @@ void ChannelSelector::buttonClicked(Button* button)
796796
selectButtonRecord->removeListener(this);
797797
deselectButtonRecord->removeListener(this);
798798
std::vector<int> getBoxList;
799-
int fa, lim, comd, i, j;
799+
int fa, lim, comd, i;
800800
getBoxList = recordBox->getBoxInfo(recordButtons.size());
801801
if (getBoxList.size() < 3)
802802
{
@@ -824,7 +824,7 @@ void ChannelSelector::buttonClicked(Button* button)
824824
selectButtonAudio->removeListener(this);
825825
deselectButtonAudio->removeListener(this);
826826
std::vector<int> getBoxList;
827-
int fa, lim, comd, i, j;
827+
int fa, lim, comd, i;
828828
getBoxList = audioBox->getBoxInfo(audioButtons.size());
829829
if (getBoxList.size() < 3)
830830
{
@@ -1239,7 +1239,7 @@ ChannelSelectorBox::~ChannelSelectorBox()
12391239
int ChannelSelectorBox::convertToInteger(std::string s)
12401240
{
12411241
char ar[20];
1242-
int i, j, k = 0;
1242+
int i, k = 0;
12431243
for (i = 0; i < s.size(); i++)
12441244
{
12451245
if (s[i] >= 48 && s[i] <= 57)

0 commit comments

Comments
 (0)