mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-13 05:17:13 +02:00
uniqe ptr for receiver
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user