Source
20
20
//# Internet email: aips2-request@nrao.edu.
21
21
//# Postal address: AIPS++ Project Office
22
22
//# National Radio Astronomy Observatory
23
23
//# 520 Edgemont Road
24
24
//# Charlottesville, VA 22903-2475 USA
25
25
//#
26
26
27
27
template <class T> void FTMachine::getGrid(casacore::Array<T>& thegrid){
28
28
29
29
thegrid.resize();
30
-
void * ptr;
30
+
void * ptr = nullptr;
31
31
casacore::Array<casacore::Float> tmpFloat;
32
32
casacore::Array<casacore::Double> tmpDouble;
33
33
casacore::IPosition shp;
34
34
bool del;
35
35
if((whatType(&thegrid)==casacore::TpArrayComplex)){
36
36
if(useDoubleGrid_p){
37
37
griddedData.resize(griddedData2.shape());
38
38
convertArray(griddedData, griddedData2);
39
39
griddedData2.resize();
40
40
useDoubleGrid_p=false;