aboutsummaryrefslogtreecommitdiffstats
path: root/src/DabMod.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2016-01-31 21:45:00 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2016-01-31 21:45:00 +0100
commit166e885cf6ea7ff4b56d860bc6449c02d03ef5de (patch)
treed5999d2a45e19db11dedc71b310e1aa765d00cad /src/DabMod.cpp
parent15de0c12ca6393a8c8c849f25a4d016abef0056b (diff)
downloaddabmod-166e885cf6ea7ff4b56d860bc6449c02d03ef5de.tar.gz
dabmod-166e885cf6ea7ff4b56d860bc6449c02d03ef5de.tar.bz2
dabmod-166e885cf6ea7ff4b56d860bc6449c02d03ef5de.zip
Replace quite a few 'new' with make_shared
Diffstat (limited to 'src/DabMod.cpp')
-rw-r--r--src/DabMod.cpp4
1 files changed, 2 insertions, 2 deletions
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> flowgraph(new Flowgraph());
+ auto flowgraph = make_shared<Flowgraph>();
shared_ptr<FormatConverter> format_converter;
shared_ptr<ModOutput> output;
@@ -174,7 +174,7 @@ int launch_modulator(int argc, char* argv[])
InputFileReader inputFileReader;
#if defined(HAVE_ZEROMQ)
- shared_ptr<InputZeroMQReader> inputZeroMQReader(new InputZeroMQReader());
+ auto inputZeroMQReader = make_shared<InputZeroMQReader>();
#endif
struct sigaction sa;