mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-23 06:50:02 +02:00
malloc to new
This commit is contained in:
parent
1b28cc88ff
commit
1ec9d950d5
@ -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;
|
||||
|
@ -5,7 +5,6 @@ set(SOURCES
|
||||
src/file_utils.cpp
|
||||
)
|
||||
|
||||
|
||||
set(HEADERS
|
||||
)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user