mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-21 17:18:00 +02:00
malloc to new
This commit is contained in:
@ -566,7 +566,7 @@ slsDetectorDefs::sls_detector_module* slsDetector::createModule(detectorType ty
|
||||
int *dacs = new int[nd];
|
||||
int *chanregs = new int[nch*nc];
|
||||
|
||||
sls_detector_module *myMod = (sls_detector_module*)malloc(sizeof(sls_detector_module));
|
||||
sls_detector_module *myMod = new sls_detector_module;
|
||||
myMod->ndac = nd;
|
||||
myMod->nchip = nc;
|
||||
myMod->nchan = nch*nc;
|
||||
|
Reference in New Issue
Block a user