From a9efe89bd11a52ef64e5299be51519a59eb11f90 Mon Sep 17 00:00:00 2001 From: tpoole Date: Fri, 12 May 2017 08:47:31 +0100 Subject: [PATCH] Code cleanup --- modules/juce_core/misc/juce_StdFunctionCompat.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/juce_core/misc/juce_StdFunctionCompat.h b/modules/juce_core/misc/juce_StdFunctionCompat.h index 9fcde88a94..e16fee6df3 100644 --- a/modules/juce_core/misc/juce_StdFunctionCompat.h +++ b/modules/juce_core/misc/juce_StdFunctionCompat.h @@ -126,7 +126,7 @@ namespace std { virtual ~FunctorHolderBase() {}; virtual size_t getSize() const noexcept = 0; - virtual FunctorHolderBase* copy (void*) const = 0; + virtual void copy (void*) const = 0; virtual ReturnType operator()(Args...) = 0; }; @@ -140,9 +140,9 @@ namespace std return sizeof (*this); } - FunctorHolder* copy (void* destination) const override final + void copy (void* destination) const override final { - return new (destination) FunctorHolder (f); + new (destination) FunctorHolder (f); } ReturnType operator()(Args... args) override final