Changeset 2246 in Sophya for trunk/SophyaLib/HiStats
- Timestamp:
- Nov 4, 2002, 5:41:38 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/HiStats/proxtuple.cc
r2244 r2246 39 39 int N=_val.size(); 40 40 if (_tuple==0) { 41 char** names=new (char*)[N];42 for (int i=0;i<N;i++) names[i]= (char*)_name[i].c_str();41 char** names=new char* [N]; 42 for (int i=0;i<N;i++) names[i]=const_cast<char*>(_name[i].c_str()); 43 43 _tuple=new NTuple(N,names); 44 delete[] names; 44 45 } 45 46 float* xnt=new float[N];
Note:
See TracChangeset
for help on using the changeset viewer.