ncassetta / NiCMidi

A MIDI C++ library with objects for reading, writing, playing, editing and recording midi files
GNU Lesser General Public License v3.0
2 stars 1 forks source link

'class MIDIMatrix' has no member named 'Clear' out_matrix.Clear(); #4

Closed goofy2k closed 2 years ago

goofy2k commented 2 years ago

I accidentally toggled the DRIVER_USES_MIDIMATRIX macro. Then the compiler complains with

'class MIDIMatrix' has no member named 'Clear' out_matrix.Clear();

in driver.cpp

if DRIVER_USES_MIDIMATRIX

        out_matrix.Clear();

endif

This is probably a non-detected bug because of hiding the code?

ncassetta commented 2 years ago

Yes, I renamed MIDIMatrix::Clear() into MIDIMatrix::Reset() and I miss that because the code was not compiled. You should write out_matrix.Reset() Thanks.

goofy2k commented 2 years ago

OK, I'll change that in the code.

goofy2k commented 2 years ago

I mean: change that in my offline code.