summaryrefslogtreecommitdiffstats
path: root/src/ConfigParser.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2016-10-29 00:08:42 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2016-10-29 00:08:42 +0200
commit471e7ee279d633a7b48e73ece42677574a74ad39 (patch)
tree953130f3bea5155679dad88028d2a758bef94e56 /src/ConfigParser.cpp
parent83d2624cdfc1dd45ab1da02881448c5584ff6050 (diff)
downloaddabmux-471e7ee279d633a7b48e73ece42677574a74ad39.tar.gz
dabmux-471e7ee279d633a7b48e73ece42677574a74ad39.tar.bz2
dabmux-471e7ee279d633a7b48e73ece42677574a74ad39.zip
Modernize a few bits and pieces
Diffstat (limited to 'src/ConfigParser.cpp')
-rw-r--r--src/ConfigParser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ConfigParser.cpp b/src/ConfigParser.cpp
index 93e6068..0ba1d78 100644
--- a/src/ConfigParser.cpp
+++ b/src/ConfigParser.cpp
@@ -393,7 +393,7 @@ void parse_ptree(
ptree pt_subchans = pt.get_child("subchannels");
for (ptree::iterator it = pt_subchans.begin(); it != pt_subchans.end(); ++it) {
string subchanuid = it->first;
- DabSubchannel* subchan = new DabSubchannel(subchanuid);
+ auto subchan = new DabSubchannel(subchanuid);
ensemble->subchannels.push_back(subchan);
@@ -466,7 +466,7 @@ void parse_ptree(
int packet_datagroup = pt_comp.get("datagroup", false);
uint8_t component_type = hexparse(pt_comp.get("type", "0"));
- DabComponent* component = new DabComponent(componentuid);
+ auto component = new DabComponent(componentuid);
component->serviceId = service->id;
component->subchId = subchannel->id;