mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-13 21:37:13 +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 *dacs = new int[nd];
|
||||||
int *chanregs = new int[nch*nc];
|
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->ndac = nd;
|
||||||
myMod->nchip = nc;
|
myMod->nchip = nc;
|
||||||
myMod->nchan = nch*nc;
|
myMod->nchan = nch*nc;
|
||||||
|
@ -5,7 +5,6 @@ set(SOURCES
|
|||||||
src/file_utils.cpp
|
src/file_utils.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
set(HEADERS
|
set(HEADERS
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user