From 5da8de05caf501f5cf3cfaffcff0c636ecca894e Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 21 Jun 2024 22:17:30 -0600 Subject: [PATCH] NO-OP: internal whitespace and newline cleanup --- libs/ardour/midi_model.cc | 2 +- libs/evoral/Event.cc | 25 +++++++++++++------------ libs/evoral/Sequence.cc | 4 +--- 3 files changed, 15 insertions(+), 16 deletions(-) diff --git a/libs/ardour/midi_model.cc b/libs/ardour/midi_model.cc index 8c39dbe21f..fb31114ed1 100644 --- a/libs/ardour/midi_model.cc +++ b/libs/ardour/midi_model.cc @@ -1431,7 +1431,7 @@ MidiModel::edit_lock() * if playback resumes at the same point after the edit. */ source_lock = new Source::WriterLock (_midi_source.mutex()); - _midi_source.invalidate(*source_lock); + _midi_source.invalidate (*source_lock); return WriteLock (new WriteLockImpl (source_lock, _lock, _control_lock)); } diff --git a/libs/evoral/Event.cc b/libs/evoral/Event.cc index 9036cc8c95..78dab0300e 100644 --- a/libs/evoral/Event.cc +++ b/libs/evoral/Event.cc @@ -94,34 +94,35 @@ Event::Event(EventType type, } template -Event::Event(const Event& copy, bool owns_buf) - : _type(copy._type) - , _time(copy._time) - , _size(copy._size) - , _buf(copy._buf) +Event::Event (const Event& copy, bool owns_buf) + : _type (copy._type) + , _time (copy._time) + , _size (copy._size) + , _buf (copy._buf) , _id (next_event_id ()) - , _owns_buf(owns_buf) + , _owns_buf (owns_buf) { if (owns_buf) { - _buf = (uint8_t*)malloc(_size); + _buf = (uint8_t*) malloc (_size); if (copy._buf) { - memcpy(_buf, copy._buf, _size); + memcpy (_buf, copy._buf, _size); } else { - memset(_buf, 0, _size); + memset (_buf, 0, _size); } } } template -Event::~Event() { +Event::~Event() +{ if (_owns_buf) { - free(_buf); + free (_buf); } } template void -Event::assign(const Event& other) +Event::assign (const Event& other) { _id = other._id; _type = other._type; diff --git a/libs/evoral/Sequence.cc b/libs/evoral/Sequence.cc index d8ff838361..db9615b5f3 100644 --- a/libs/evoral/Sequence.cc +++ b/libs/evoral/Sequence.cc @@ -534,9 +534,7 @@ Sequence