Browse Source

Use DISTRHO_DECLARE_NON_COPYABLE

Signed-off-by: falkTX <falktx@falktx.com>
pull/272/head
falkTX 4 years ago
parent
commit
e36aaaa02f
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
7 changed files with 16 additions and 16 deletions
  1. +2
    -2
      dgl/src/Common.hpp
  2. +3
    -3
      dgl/src/ImageBaseWidgets.cpp
  3. +1
    -1
      distrho/DistrhoPlugin.hpp
  4. +1
    -1
      distrho/extra/ExternalWindow.hpp
  5. +2
    -2
      distrho/extra/LeakDetector.hpp
  6. +6
    -6
      distrho/extra/Mutex.hpp
  7. +1
    -1
      distrho/extra/Thread.hpp

+ 2
- 2
dgl/src/Common.hpp View File

@@ -115,7 +115,7 @@ struct ButtonImpl {
}

DISTRHO_PREVENT_HEAP_ALLOCATION
DISTRHO_DECLARE_NON_COPY_STRUCT(ButtonImpl)
DISTRHO_DECLARE_NON_COPYABLE(ButtonImpl)
};

// -----------------------------------------------------------------------
@@ -178,7 +178,7 @@ struct ImageBaseKnob<ImageType>::PrivateData {
return std::log(value/a)/b;
}

DISTRHO_DECLARE_NON_COPY_STRUCT(PrivateData)
DISTRHO_DECLARE_NON_COPYABLE(PrivateData)
};

// -----------------------------------------------------------------------


+ 3
- 3
dgl/src/ImageBaseWidgets.cpp View File

@@ -109,7 +109,7 @@ struct ImageBaseButton<ImageType>::PrivateData {
imageHover(hover),
imageDown(down) {}

DISTRHO_DECLARE_NON_COPY_STRUCT(PrivateData)
DISTRHO_DECLARE_NON_COPYABLE(PrivateData)
};

// --------------------------------------------------------------------------------------------------------------------
@@ -617,7 +617,7 @@ struct ImageBaseSlider<ImageType>::PrivateData {
}
}

DISTRHO_DECLARE_NON_COPY_STRUCT(PrivateData)
DISTRHO_DECLARE_NON_COPYABLE(PrivateData)
};

// --------------------------------------------------------------------------------------------------------------------
@@ -976,7 +976,7 @@ struct ImageBaseSwitch<ImageType>::PrivateData {
DISTRHO_SAFE_ASSERT(imageNormal.getSize() == imageDown.getSize());
}

DISTRHO_DECLARE_NON_COPY_STRUCT(PrivateData)
DISTRHO_DECLARE_NON_COPYABLE(PrivateData)
};

// --------------------------------------------------------------------------------------------------------------------


+ 1
- 1
distrho/DistrhoPlugin.hpp View File

@@ -369,7 +369,7 @@ struct ParameterEnumerationValues {
}
}

DISTRHO_DECLARE_NON_COPY_STRUCT(ParameterEnumerationValues)
DISTRHO_DECLARE_NON_COPYABLE(ParameterEnumerationValues)
};

/**


+ 1
- 1
distrho/extra/ExternalWindow.hpp View File

@@ -192,7 +192,7 @@ private:

friend class UIExporter;

DISTRHO_DECLARE_NON_COPY_CLASS(ExternalWindow)
DISTRHO_DECLARE_NON_COPYABLE(ExternalWindow)
};

// -----------------------------------------------------------------------


+ 2
- 2
distrho/extra/LeakDetector.hpp View File

@@ -54,13 +54,13 @@ START_NAMESPACE_DISTRHO
DISTRHO_NAMESPACE::LeakedObjectDetector<ClassName> DISTRHO_JOIN_MACRO(leakDetector_, ClassName);

# define DISTRHO_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(ClassName) \
DISTRHO_DECLARE_NON_COPY_CLASS(ClassName) \
DISTRHO_DECLARE_NON_COPYABLE(ClassName) \
DISTRHO_LEAK_DETECTOR(ClassName)
#else
/** Don't use leak detection on release builds. */
# define DISTRHO_LEAK_DETECTOR(ClassName)
# define DISTRHO_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(ClassName) \
DISTRHO_DECLARE_NON_COPY_CLASS(ClassName)
DISTRHO_DECLARE_NON_COPYABLE(ClassName)
#endif

//==============================================================================


+ 6
- 6
distrho/extra/Mutex.hpp View File

@@ -86,7 +86,7 @@ public:
private:
mutable pthread_mutex_t fMutex;

DISTRHO_DECLARE_NON_COPY_CLASS(Mutex)
DISTRHO_DECLARE_NON_COPYABLE(Mutex)
};

// -----------------------------------------------------------------------
@@ -174,7 +174,7 @@ private:
mutable pthread_mutex_t fMutex;
#endif

DISTRHO_DECLARE_NON_COPY_CLASS(RecursiveMutex)
DISTRHO_DECLARE_NON_COPYABLE(RecursiveMutex)
};

// -----------------------------------------------------------------------
@@ -255,7 +255,7 @@ private:
volatile bool fTriggered;

DISTRHO_PREVENT_HEAP_ALLOCATION
DISTRHO_DECLARE_NON_COPY_CLASS(Signal)
DISTRHO_DECLARE_NON_COPYABLE(Signal)
};

// -----------------------------------------------------------------------
@@ -280,7 +280,7 @@ private:
const Mutex& fMutex;

DISTRHO_PREVENT_HEAP_ALLOCATION
DISTRHO_DECLARE_NON_COPY_CLASS(ScopeLocker)
DISTRHO_DECLARE_NON_COPYABLE(ScopeLocker)
};

// -----------------------------------------------------------------------
@@ -319,7 +319,7 @@ private:
const bool fLocked;

DISTRHO_PREVENT_HEAP_ALLOCATION
DISTRHO_DECLARE_NON_COPY_CLASS(ScopeTryLocker)
DISTRHO_DECLARE_NON_COPYABLE(ScopeTryLocker)
};

// -----------------------------------------------------------------------
@@ -344,7 +344,7 @@ private:
const Mutex& fMutex;

DISTRHO_PREVENT_HEAP_ALLOCATION
DISTRHO_DECLARE_NON_COPY_CLASS(ScopeUnlocker)
DISTRHO_DECLARE_NON_COPYABLE(ScopeUnlocker)
};

// -----------------------------------------------------------------------


+ 1
- 1
distrho/extra/Thread.hpp View File

@@ -324,7 +324,7 @@ private:
return nullptr;
}

DISTRHO_DECLARE_NON_COPY_CLASS(Thread)
DISTRHO_DECLARE_NON_COPYABLE(Thread)
};

// -----------------------------------------------------------------------


Loading…
Cancel
Save