mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-20 08:38:00 +02:00
Use sls::make_unique<>
This commit is contained in:
@ -11,6 +11,7 @@
|
||||
#include <map>
|
||||
#include <getopt.h>
|
||||
|
||||
#include "container_utils.h" // For sls::make_unique<>
|
||||
|
||||
#include "slsReceiver.h"
|
||||
#include "slsReceiverTCPIPInterface.h"
|
||||
@ -78,17 +79,14 @@ slsReceiver::slsReceiver(int argc, char *argv[]):
|
||||
}
|
||||
|
||||
// might throw an exception
|
||||
//tcpipInterface = std::make_unique<slsReceiverTCPIPInterface>(tcpip_port_no);
|
||||
tcpipInterface = std::unique_ptr<slsReceiverTCPIPInterface>(new slsReceiverTCPIPInterface(tcpip_port_no));
|
||||
|
||||
tcpipInterface = sls::make_unique<slsReceiverTCPIPInterface>(tcpip_port_no);
|
||||
}
|
||||
|
||||
|
||||
slsReceiver::slsReceiver(int tcpip_port_no)
|
||||
{
|
||||
// might throw an exception
|
||||
//tcpipInterface = std::make_unique<slsReceiverTCPIPInterface>(tcpip_port_no);
|
||||
tcpipInterface = std::unique_ptr<slsReceiverTCPIPInterface>(new slsReceiverTCPIPInterface(tcpip_port_no));
|
||||
tcpipInterface = sls::make_unique<slsReceiverTCPIPInterface>(tcpip_port_no);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user