From: Ron F. <ro...@us...> - 2005-05-11 21:26:57
|
Update of /cvsroot/nsclspectcl/SpecTcl/contrib/calibratedparams In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2637/contrib/calibratedparams Modified Files: Tag: SpecTcl-3-0_developmentreally CLinearFit.cpp Log Message: - Add -pedantic and deal with the fallout. - Fix long standing issues with sread/swrite -format binary - Merge in Tim's strip chart spectrum and ensure stuff builds correctly. Index: CLinearFit.cpp =================================================================== RCS file: /cvsroot/nsclspectcl/SpecTcl/contrib/calibratedparams/CLinearFit.cpp,v retrieving revision 5.1.2.1 retrieving revision 5.1.2.2 diff -C2 -d -r5.1.2.1 -r5.1.2.2 *** CLinearFit.cpp 15 Dec 2004 17:29:22 -0000 5.1.2.1 --- CLinearFit.cpp 11 May 2005 21:26:41 -0000 5.1.2.2 *************** *** 158,163 **** int nPoints = size(); ! double x[nPoints]; ! double y[nPoints]; CFit::PointIterator p = begin(); for(int i =0; i < nPoints; i++) { --- 158,163 ---- int nPoints = size(); ! double* x = new double[nPoints]; ! double* y = new double[nPoints]; CFit::PointIterator p = begin(); for(int i =0; i < nPoints; i++) { *************** *** 177,181 **** SetFitState(CFit::Performed); ! } --- 177,182 ---- SetFitState(CFit::Performed); ! delete []x; ! delete []y; } |