Browse Source

Cleanup

tags/1.9.4
falkTX 10 years ago
parent
commit
e681ad1f1b
2 changed files with 10 additions and 7 deletions
  1. +8
    -5
      source/utils/CarlaRingBuffer.hpp
  2. +2
    -2
      source/utils/Lv2AtomRingBuffer.hpp

+ 8
- 5
source/utils/CarlaRingBuffer.hpp View File

@@ -392,12 +392,13 @@ class CarlaHeapRingBuffer : public CarlaRingBuffer<HeapBuffer>
{ {
public: public:
CarlaHeapRingBuffer() noexcept CarlaHeapRingBuffer() noexcept
: fHeapBuffer(HeapBuffer_INIT)
#ifdef CARLA_PROPER_CPP11_SUPPORT
: fHeapBuffer(HeapBuffer_INIT) {}
#else
{ {
#ifndef CARLA_PROPER_CPP11_SUPPORT
carla_zeroStruct(fHeapBuffer); carla_zeroStruct(fHeapBuffer);
#endif
} }
#endif


~CarlaHeapRingBuffer() noexcept override ~CarlaHeapRingBuffer() noexcept override
{ {
@@ -448,14 +449,16 @@ class CarlaStackRingBuffer : public CarlaRingBuffer<StackBuffer>
{ {
public: public:
CarlaStackRingBuffer() noexcept CarlaStackRingBuffer() noexcept
#ifdef CARLA_PROPER_CPP11_SUPPORT
: fStackBuffer(StackBuffer_INIT) : fStackBuffer(StackBuffer_INIT)
{ {
#ifdef CARLA_PROPER_CPP11_SUPPORT
setRingBuffer(&fStackBuffer, false); setRingBuffer(&fStackBuffer, false);
}
#else #else
{
setRingBuffer(&fStackBuffer, true); setRingBuffer(&fStackBuffer, true);
#endif
} }
#endif


private: private:
StackBuffer fStackBuffer; StackBuffer fStackBuffer;


+ 2
- 2
source/utils/Lv2AtomRingBuffer.hpp View File

@@ -46,9 +46,9 @@ public:
fNeedsDataDelete(false) fNeedsDataDelete(false)
#ifdef CARLA_PROPER_CPP11_SUPPORT #ifdef CARLA_PROPER_CPP11_SUPPORT
, fRetAtom{{0,0}, {0}} , fRetAtom{{0,0}, {0}}
#endif
{ {
#else
{
#ifndef CARLA_PROPER_CPP11_SUPPORT
carla_zeroStruct(fHeapBuffer); carla_zeroStruct(fHeapBuffer);
#endif #endif




Loading…
Cancel
Save