Ignore:
Timestamp:
Jul 16, 2008 9:58:14 PM (12 years ago)
Author:
ladanyi
Message:

switch from strdup to CoinStrdup?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • stable/1.8/Clp/src/ClpModel.cpp

    r1215 r1230  
    36193619    for (iRow=0;iRow<numberNames;iRow++) {
    36203620      rowNames[iRow] =
    3621         strdup(rowName(iRow).c_str());
     3621        CoinStrdup(rowName(iRow).c_str());
    36223622#ifdef STRIPBLANKS
    36233623      char * xx = rowNames[iRow];
     
    36353635    for ( ;iRow<numberRows_;iRow++) {
    36363636      sprintf(name,"R%7.7d",iRow);
    3637       rowNames[iRow]=strdup(name);
    3638     }
    3639     rowNames[numberRows_] = strdup("OBJROW");
     3637      rowNames[iRow]=CoinStrdup(name);
     3638    }
     3639    rowNames[numberRows_] = CoinStrdup("OBJROW");
    36403640  }
    36413641  return reinterpret_cast<const char * const *>(rowNames);
     
    36533653    for (iColumn=0;iColumn<numberNames;iColumn++) {
    36543654      columnNames[iColumn] =
    3655         strdup(columnName(iColumn).c_str());
     3655        CoinStrdup(columnName(iColumn).c_str());
    36563656#ifdef STRIPBLANKS
    36573657      char * xx = columnNames[iColumn];
     
    36693669    for ( ;iColumn<numberColumns_;iColumn++) {
    36703670      sprintf(name,"C%7.7d",iColumn);
    3671       columnNames[iColumn]=strdup(name);
     3671      columnNames[iColumn]=CoinStrdup(name);
    36723672    }
    36733673  }
Note: See TracChangeset for help on using the changeset viewer.