DPF

DISTRHO Plugin Framework
Log | Files | Refs | Submodules | README | LICENSE

commit 209051adaebb67fbd884a6c6105afbf0c5fd52eb
parent a57953fab7b260e1520413d93812957005c8ea0f
Author: falkTX <falktx@gmail.com>
Date:   Sat, 26 Apr 2014 21:35:45 +0100

Fix conflicts with carla

Diffstat:
Mdistrho/extra/d_leakdetector.hpp | 12++++++------
1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/distrho/extra/d_leakdetector.hpp b/distrho/extra/d_leakdetector.hpp @@ -46,9 +46,9 @@ \endcode */ #define DISTRHO_LEAK_DETECTOR(ClassName) \ - friend class ::LeakedObjectDetector<ClassName>; \ + friend class ::DistrhoLeakedObjectDetector<ClassName>; \ static const char* getLeakedObjectClassName() noexcept { return #ClassName; } \ - ::LeakedObjectDetector<ClassName> DISTRHO_JOIN_MACRO(leakDetector, __LINE__); + ::DistrhoLeakedObjectDetector<ClassName> DISTRHO_JOIN_MACRO(leakDetector, __LINE__); #define DISTRHO_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(ClassName) \ DISTRHO_DECLARE_NON_COPY_CLASS(ClassName) \ @@ -67,14 +67,14 @@ class declaration. */ template <class OwnerClass> -class LeakedObjectDetector +class DistrhoLeakedObjectDetector { public: //============================================================================== - LeakedObjectDetector() noexcept { ++(getCounter().numObjects); } - LeakedObjectDetector(const LeakedObjectDetector&) noexcept { ++(getCounter().numObjects); } + DistrhoLeakedObjectDetector() noexcept { ++(getCounter().numObjects); } + DistrhoLeakedObjectDetector(const DistrhoLeakedObjectDetector&) noexcept { ++(getCounter().numObjects); } - ~LeakedObjectDetector() noexcept + ~DistrhoLeakedObjectDetector() noexcept { if (--(getCounter().numObjects) < 0) {