mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-11-26 06:57:59 +01:00
malloc to new
This commit is contained in:
1 parent
1b28cc88ff
commit
1ec9d950d5
2 files changed
+1
-2
No files matched your search
@@ -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
|
||||
)
|
||||
|
||||
|
||||
Reference in new issue
Block a user