From 746a6413f20189ccb161a3fd75c0e1dacb1ddbc7 Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Sat, 21 Oct 2017 19:05:21 +0200 Subject: [PATCH] [DEV] update to the new ETK allocator wrapper --- audio/drain/ChannelReorder.cpp | 2 +- audio/drain/EndPointCallback.cpp | 4 ++-- audio/drain/EndPointRead.cpp | 2 +- audio/drain/EndPointWrite.cpp | 2 +- audio/drain/Equalizer.cpp | 2 +- audio/drain/FormatUpdate.cpp | 2 +- audio/drain/Resampler.cpp | 2 +- audio/drain/Volume.cpp | 2 +- tools/drainBiQuadProfiling/appl/main.cpp | 2 +- tools/drainEqualizerProfiling/appl/main.cpp | 2 +- 10 files changed, 11 insertions(+), 11 deletions(-) diff --git a/audio/drain/ChannelReorder.cpp b/audio/drain/ChannelReorder.cpp index efe6dc8..5d59d2f 100644 --- a/audio/drain/ChannelReorder.cpp +++ b/audio/drain/ChannelReorder.cpp @@ -19,7 +19,7 @@ void audio::drain::ChannelReorder::init() { } ememory::SharedPtr audio::drain::ChannelReorder::create() { - ememory::SharedPtr tmp(new audio::drain::ChannelReorder()); + ememory::SharedPtr tmp(ETK_NEW(audio::drain::ChannelReorder)); tmp->init(); return tmp; } diff --git a/audio/drain/EndPointCallback.cpp b/audio/drain/EndPointCallback.cpp index bd5c985..86376df 100644 --- a/audio/drain/EndPointCallback.cpp +++ b/audio/drain/EndPointCallback.cpp @@ -26,13 +26,13 @@ void audio::drain::EndPointCallback::init(recordFunction _callback) { } ememory::SharedPtr audio::drain::EndPointCallback::create(playbackFunction _callback) { - ememory::SharedPtr tmp(new audio::drain::EndPointCallback()); + ememory::SharedPtr tmp(ETK_NEW(audio::drain::EndPointCallback)); tmp->init(_callback); return tmp; } ememory::SharedPtr audio::drain::EndPointCallback::create(recordFunction _callback) { - ememory::SharedPtr tmp(new audio::drain::EndPointCallback()); + ememory::SharedPtr tmp(ETK_NEW(audio::drain::EndPointCallback)); tmp->init(_callback); return tmp; } diff --git a/audio/drain/EndPointRead.cpp b/audio/drain/EndPointRead.cpp index 9cc7987..42052d2 100644 --- a/audio/drain/EndPointRead.cpp +++ b/audio/drain/EndPointRead.cpp @@ -19,7 +19,7 @@ void audio::drain::EndPointRead::init() { } ememory::SharedPtr audio::drain::EndPointRead::create() { - ememory::SharedPtr tmp(new audio::drain::EndPointRead()); + ememory::SharedPtr tmp(ETK_NEW(audio::drain::EndPointRead)); tmp->init(); return tmp; } diff --git a/audio/drain/EndPointWrite.cpp b/audio/drain/EndPointWrite.cpp index e6e16d5..2914115 100644 --- a/audio/drain/EndPointWrite.cpp +++ b/audio/drain/EndPointWrite.cpp @@ -27,7 +27,7 @@ void audio::drain::EndPointWrite::init() { } ememory::SharedPtr audio::drain::EndPointWrite::create() { - ememory::SharedPtr tmp(new audio::drain::EndPointWrite()); + ememory::SharedPtr tmp(ETK_NEW(audio::drain::EndPointWrite)); tmp->init(); return tmp; } diff --git a/audio/drain/Equalizer.cpp b/audio/drain/Equalizer.cpp index 9069b54..ba241a4 100644 --- a/audio/drain/Equalizer.cpp +++ b/audio/drain/Equalizer.cpp @@ -24,7 +24,7 @@ void audio::drain::Equalizer::init() { } ememory::SharedPtr audio::drain::Equalizer::create() { - ememory::SharedPtr tmp(new audio::drain::Equalizer()); + ememory::SharedPtr tmp(ETK_NEW(audio::drain::Equalizer)); tmp->init(); return tmp; } diff --git a/audio/drain/FormatUpdate.cpp b/audio/drain/FormatUpdate.cpp index 6531613..8aca3d9 100644 --- a/audio/drain/FormatUpdate.cpp +++ b/audio/drain/FormatUpdate.cpp @@ -133,7 +133,7 @@ void audio::drain::FormatUpdate::init() { } ememory::SharedPtr audio::drain::FormatUpdate::create() { - ememory::SharedPtr tmp(new audio::drain::FormatUpdate()); + ememory::SharedPtr tmp(ETK_NEW(audio::drain::FormatUpdate)); tmp->init(); return tmp; } diff --git a/audio/drain/Resampler.cpp b/audio/drain/Resampler.cpp index abf8d41..95fa56b 100644 --- a/audio/drain/Resampler.cpp +++ b/audio/drain/Resampler.cpp @@ -24,7 +24,7 @@ void audio::drain::Resampler::init() { } ememory::SharedPtr audio::drain::Resampler::create() { - ememory::SharedPtr tmp(new audio::drain::Resampler()); + ememory::SharedPtr tmp(ETK_NEW(audio::drain::Resampler)); tmp->init(); return tmp; } diff --git a/audio/drain/Volume.cpp b/audio/drain/Volume.cpp index e05baad..e02a571 100644 --- a/audio/drain/Volume.cpp +++ b/audio/drain/Volume.cpp @@ -24,7 +24,7 @@ void audio::drain::Volume::init() { } ememory::SharedPtr audio::drain::Volume::create() { - ememory::SharedPtr tmp(new audio::drain::Volume()); + ememory::SharedPtr tmp(ETK_NEW(audio::drain::Volume)); tmp->init(); return tmp; } diff --git a/tools/drainBiQuadProfiling/appl/main.cpp b/tools/drainBiQuadProfiling/appl/main.cpp index d8f3eae..7788f65 100644 --- a/tools/drainBiQuadProfiling/appl/main.cpp +++ b/tools/drainBiQuadProfiling/appl/main.cpp @@ -52,7 +52,7 @@ class MainApplication : public ewol::context::Application { * @return std IO */ int main(int _argc, const char *_argv[]) { - return ewol::run(new MainApplication(), _argc, _argv); + return ewol::run(ETK_NEW(MainApplication), _argc, _argv); } diff --git a/tools/drainEqualizerProfiling/appl/main.cpp b/tools/drainEqualizerProfiling/appl/main.cpp index d8f3eae..7788f65 100644 --- a/tools/drainEqualizerProfiling/appl/main.cpp +++ b/tools/drainEqualizerProfiling/appl/main.cpp @@ -52,7 +52,7 @@ class MainApplication : public ewol::context::Application { * @return std IO */ int main(int _argc, const char *_argv[]) { - return ewol::run(new MainApplication(), _argc, _argv); + return ewol::run(ETK_NEW(MainApplication), _argc, _argv); }