uniqe ptr for receiver

This commit is contained in:
Erik Frojdh
2019-05-27 11:28:59 +02:00
parent 0972b803dd
commit 8ebc0f2644
2 changed files with 4 additions and 3 deletions

View File

@ -583,7 +583,7 @@ int slsReceiverTCPIPInterface::set_detector_type(sls::ServerInterface2 &socket){
}
if(ret == OK) {
if(receiver == nullptr){
receiver = new slsReceiverImplementation();
receiver = sls::make_unique<slsReceiverImplementation>();
}
myDetectorType = arg;
ret = receiver->setDetectorType(myDetectorType);