From efe14fbd5291fa25e373e2191b04907b679a7e2e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 23 Nov 2011 00:17:31 +0000 Subject: [PATCH] Fix broken whitespace via merciless application of the emacs hammer. git-svn-id: svn://localhost/ardour2/branches/3.0@10782 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/evoral/evoral/ControlList.hpp | 36 +- libs/evoral/evoral/EventRingBuffer.hpp | 64 +-- libs/evoral/evoral/Parameter.hpp | 3 +- libs/evoral/evoral/PatchChange.hpp | 40 +- libs/evoral/evoral/SMF.hpp | 6 +- libs/evoral/evoral/Sequence.hpp | 16 +- libs/evoral/evoral/TimeConverter.hpp | 2 +- libs/evoral/evoral/types.hpp | 1 - libs/evoral/run-tests.sh | 2 +- libs/evoral/src/ControlList.cpp | 374 ++++++------- libs/evoral/src/ControlSet.cpp | 34 +- libs/evoral/src/Note.cpp | 22 +- libs/evoral/src/SMF.cpp | 136 ++--- libs/evoral/src/Sequence.cpp | 694 ++++++++++++------------- libs/evoral/src/libsmf/smf.c | 16 +- libs/evoral/test/testrunner.cpp | 22 +- 16 files changed, 733 insertions(+), 735 deletions(-) diff --git a/libs/evoral/evoral/ControlList.hpp b/libs/evoral/evoral/ControlList.hpp index 87f214a601..792de036a6 100644 --- a/libs/evoral/evoral/ControlList.hpp +++ b/libs/evoral/evoral/ControlList.hpp @@ -35,12 +35,12 @@ class Curve; /** A single event (time-stamped value) for a control */ struct ControlEvent { - ControlEvent (double w, double v) - : when (w), value (v), coeff (0) + ControlEvent (double w, double v) + : when (w), value (v), coeff (0) {} - ControlEvent (const ControlEvent& other) - : when (other.when), value (other.value), coeff (0) + ControlEvent (const ControlEvent& other) + : when (other.when), value (other.value), coeff (0) { if (other.coeff) { create_coeffs(); @@ -58,9 +58,9 @@ struct ControlEvent { coeff[0] = coeff[1] = coeff[2] = coeff[3] = 0.0; } - double when; - double value; - double* coeff; ///< double[4] allocated by Curve as needed + double when; + double value; + double* coeff; ///< double[4] allocated by Curve as needed }; @@ -68,11 +68,11 @@ struct ControlEvent { * and allocates 8k blocks of new pointers at a time */ typedef boost::fast_pool_allocator< - ControlEvent*, - boost::default_user_allocator_new_delete, - boost::details::pool::null_mutex, - 8192> - ControlEventAllocator; + ControlEvent*, + boost::default_user_allocator_new_delete, + boost::details::pool::null_mutex, + 8192> +ControlEventAllocator; /** A list (sequence) of time-stamped values for a control @@ -115,7 +115,7 @@ public: void slide (iterator before, double distance); void shift (double before, double distance); - virtual bool clamp_value (double& /*when*/, double& /*value*/) const { return true; } + virtual bool clamp_value (double& /*when*/, double& /*value*/) const { return true; } void rt_add (double when, double value); void add (double when, double value); @@ -246,7 +246,7 @@ public: mutable PBD::Signal0 Dirty; /** Emitted when our interpolation style changes */ PBD::Signal1 InterpolationChanged; - + protected: /** Called by unlocked_eval() to handle cases of 3 or more control points. */ @@ -282,13 +282,13 @@ protected: EventList events; double start_time; double end_time; - + NascentInfo (double start = -1.0) : start_time (start) - , end_time (-1.0) - {} + , end_time (-1.0) + {} }; - + std::list nascent; }; diff --git a/libs/evoral/evoral/EventRingBuffer.hpp b/libs/evoral/evoral/EventRingBuffer.hpp index cc58d27bed..11d487f778 100644 --- a/libs/evoral/evoral/EventRingBuffer.hpp +++ b/libs/evoral/evoral/EventRingBuffer.hpp @@ -44,10 +44,10 @@ public: /** @param capacity Ringbuffer capacity in bytes. */ - EventRingBuffer(size_t capacity) : PBD::RingBufferNPT(capacity) + EventRingBuffer(size_t capacity) : PBD::RingBufferNPT(capacity) {} - size_t capacity() const { return bufsize(); } + size_t capacity() const { return bufsize(); } /** Peek at the ringbuffer (read w/o advancing read pointer). * @return how much has been peeked (wraps around if read exceeds @@ -57,7 +57,7 @@ public: * read-pointer---^ * */ - bool peek (uint8_t*, size_t size); + bool peek (uint8_t*, size_t size); uint32_t write(Time time, EventType type, uint32_t size, const uint8_t* buf); bool read (Time* time, EventType* type, uint32_t* size, uint8_t* buf); @@ -67,25 +67,25 @@ template inline bool EventRingBuffer