From 863d9fe32fbff286d4c359d6a5c29184ed511866 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Mon, 21 Dec 2015 22:53:23 +0100 Subject: Replace some boost shared_ptr by std ones --- src/DabMux.cpp | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'src/DabMux.cpp') diff --git a/src/DabMux.cpp b/src/DabMux.cpp index f3f0c95..18fee19 100644 --- a/src/DabMux.cpp +++ b/src/DabMux.cpp @@ -29,7 +29,7 @@ # include "config.h" #endif -#include +#include #include #include #include @@ -219,7 +219,7 @@ int main(int argc, char *argv[]) int returnCode = 0; ptree pt; - std::vector > outputs; + std::vector > outputs; try { if (argc == 2) { // Assume the only argument is a config file @@ -276,15 +276,13 @@ int main(int argc, char *argv[]) /************** READ REMOTE CONTROL PARAMETERS *************/ int telnetport = pt.get("remotecontrol.telnetport", 0); - boost::shared_ptr rc; + std::shared_ptr rc; if (telnetport != 0) { - rc = boost::shared_ptr( - new RemoteControllerTelnet(telnetport)); + rc = std::make_shared(telnetport); } else { - rc = boost::shared_ptr( - new RemoteControllerDummy()); + rc = std::make_shared(); } DabMultiplexer mux(rc, pt); @@ -412,7 +410,7 @@ int main(int argc, char *argv[]) return -1; } - boost::shared_ptr dabout(output); + std::shared_ptr dabout(output); outputs.push_back(dabout); } -- cgit v1.2.3