Vectors: Use clear() and has().
Use clear() instead of resize(0). Use has() instead of "find(p_val) != -1".
This commit is contained in:
@@ -112,7 +112,7 @@ void AudioEffectRecordInstance::init() {
|
||||
ring_buffer_read_pos = 0;
|
||||
|
||||
//We start a new recording
|
||||
recording_data.resize(0); //Clear data completely and reset length
|
||||
recording_data.clear(); //Clear data completely and reset length
|
||||
is_recording = true;
|
||||
|
||||
#ifdef NO_THREADS
|
||||
|
||||
Reference in New Issue
Block a user