Changeset 2246 in Sophya for trunk/SophyaLib/HiStats/proxtuple.cc


Ignore:
Timestamp:
Nov 4, 2002, 5:41:38 PM (23 years ago)
Author:
ansari
Message:

Pb compil proxtuple.cc - Reza 4/11/2002

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/HiStats/proxtuple.cc

    r2244 r2246  
    3939  int N=_val.size();
    4040  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());
    4343    _tuple=new NTuple(N,names);
     44    delete[] names;
    4445  }
    4546  float* xnt=new float[N];
Note: See TracChangeset for help on using the changeset viewer.