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:
CarlaHeapRingBuffer() noexcept
: fHeapBuffer(HeapBuffer_INIT)
#ifdef CARLA_PROPER_CPP11_SUPPORT
: fHeapBuffer(HeapBuffer_INIT) {}
#else
{
#ifndef CARLA_PROPER_CPP11_SUPPORT
carla_zeroStruct(fHeapBuffer);
#endif
}
#endif

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

private:
StackBuffer fStackBuffer;


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

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



Loading…
Cancel
Save