From 166e885cf6ea7ff4b56d860bc6449c02d03ef5de Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Sun, 31 Jan 2016 21:45:00 +0100 Subject: Replace quite a few 'new' with make_shared --- src/DabMod.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/DabMod.cpp') diff --git a/src/DabMod.cpp b/src/DabMod.cpp index 982a1ee..f250850 100644 --- a/src/DabMod.cpp +++ b/src/DabMod.cpp @@ -164,7 +164,7 @@ int launch_modulator(int argc, char* argv[]) unsigned tist_delay_stages = 0; double tist_offset_s = 0.0; - shared_ptr flowgraph(new Flowgraph()); + auto flowgraph = make_shared(); shared_ptr format_converter; shared_ptr output; @@ -174,7 +174,7 @@ int launch_modulator(int argc, char* argv[]) InputFileReader inputFileReader; #if defined(HAVE_ZEROMQ) - shared_ptr inputZeroMQReader(new InputZeroMQReader()); + auto inputZeroMQReader = make_shared(); #endif struct sigaction sa; -- cgit v1.2.3