mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Add final specifiers in implementation files
This commit is contained in:
parent
aee5a3a45e
commit
6bf9bb9a2e
315 changed files with 1031 additions and 1025 deletions
|
|
@ -70,7 +70,7 @@ private:
|
|||
std::vector<Element> storage;
|
||||
};
|
||||
|
||||
class BackgroundMessageQueue : private Thread
|
||||
class BackgroundMessageQueue : private Thread
|
||||
{
|
||||
public:
|
||||
explicit BackgroundMessageQueue (int entries)
|
||||
|
|
@ -843,7 +843,7 @@ static void setImpulseResponse (ConvolutionEngineFactory& factory,
|
|||
// this object when adding commands to the background message queue.
|
||||
// That way, we can avoid dangling references in the background thread in the case
|
||||
// that a Convolution instance is deleted before the background message queue.
|
||||
class ConvolutionEngineQueue : public std::enable_shared_from_this<ConvolutionEngineQueue>
|
||||
class ConvolutionEngineQueue final : public std::enable_shared_from_this<ConvolutionEngineQueue>
|
||||
{
|
||||
public:
|
||||
ConvolutionEngineQueue (BackgroundMessageQueue& queue,
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ namespace juce::dsp
|
|||
namespace
|
||||
{
|
||||
|
||||
class ConvolutionTest : public UnitTest
|
||||
class ConvolutionTest final : public UnitTest
|
||||
{
|
||||
template <typename Callback>
|
||||
static void nTimes (int n, Callback&& callback)
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@ struct FFT::EngineImpl : public FFT::Engine
|
|||
|
||||
//==============================================================================
|
||||
//==============================================================================
|
||||
struct FFTFallback : public FFT::Instance
|
||||
struct FFTFallback final : public FFT::Instance
|
||||
{
|
||||
// this should have the least priority of all engines
|
||||
static constexpr int priority = -1;
|
||||
|
|
@ -432,7 +432,7 @@ FFT::EngineImpl<FFTFallback> fftFallback;
|
|||
//==============================================================================
|
||||
//==============================================================================
|
||||
#if (JUCE_MAC || JUCE_IOS) && JUCE_USE_VDSP_FRAMEWORK
|
||||
struct AppleFFT : public FFT::Instance
|
||||
struct AppleFFT final : public FFT::Instance
|
||||
{
|
||||
static constexpr int priority = 5;
|
||||
|
||||
|
|
@ -731,7 +731,7 @@ FFT::EngineImpl<FFTWImpl> fftwEngine;
|
|||
//==============================================================================
|
||||
//==============================================================================
|
||||
#if JUCE_DSP_USE_INTEL_MKL
|
||||
struct IntelFFT : public FFT::Instance
|
||||
struct IntelFFT final : public FFT::Instance
|
||||
{
|
||||
static constexpr int priority = 8;
|
||||
|
||||
|
|
@ -817,7 +817,7 @@ FFT::EngineImpl<IntelFFT> fftwEngine;
|
|||
// setting at 'Project' > 'Properties' > 'Configuration Properties' > 'Intel
|
||||
// Performance Libraries' > 'Use Intel(R) IPP'
|
||||
#if _IPP_SEQUENTIAL_STATIC || _IPP_SEQUENTIAL_DYNAMIC || _IPP_PARALLEL_STATIC || _IPP_PARALLEL_DYNAMIC
|
||||
class IntelPerformancePrimitivesFFT : public FFT::Instance
|
||||
class IntelPerformancePrimitivesFFT final : public FFT::Instance
|
||||
{
|
||||
public:
|
||||
static constexpr auto priority = 9;
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@
|
|||
namespace juce::dsp
|
||||
{
|
||||
|
||||
struct FFTUnitTest : public UnitTest
|
||||
struct FFTUnitTest final : public UnitTest
|
||||
{
|
||||
FFTUnitTest()
|
||||
: UnitTest ("FFT", UnitTestCategories::dsp)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue