summaryrefslogtreecommitdiffstats
path: root/src/EtiReader.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/EtiReader.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/EtiReader.cpp')
-rw-r--r--src/EtiReader.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/EtiReader.cpp b/src/EtiReader.cpp
index 3171a91..16272e3 100644
--- a/src/EtiReader.cpp
+++ b/src/EtiReader.cpp
@@ -174,8 +174,7 @@ int EtiReader::process(const Buffer* dataIn)
mySources.clear();
for (unsigned i = 0; i < eti_fc.NST; ++i) {
- mySources.push_back(shared_ptr<SubchannelSource>(
- new SubchannelSource(eti_stc[i])));
+ mySources.push_back(make_shared<SubchannelSource>(eti_stc[i]));
PDEBUG("Sstc %u:\n", i);
PDEBUG(" Stc%i.scid: %i\n", i, eti_stc[i].SCID);
PDEBUG(" Stc%i.sad: %u\n", i, eti_stc[i].getStartAddress());