Ignore:
Timestamp:
Feb 7, 2009, 10:50:34 PM (17 years ago)
Author:
cmv
Message:

char* -> const char* pour regler les problemes de deprecated string const... + comparaison unsigned signed + suppression EVOL_PLANCK rz+cmv 07/02/2009

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaExt/FitsIOServer/fitsfile.cc

    r2907 r3572  
    228228*/
    229229
    230 /*! \fn void  SOPHYA::FitsIOHandler::Read(char flnm[],int hdunum)
     230/*! \fn void  SOPHYA::FitsIOHandler::Read(const char flnm[],int hdunum)
    231231
    232232this method is called from inherited objects :
     
    238238calls the method 'ReadFromFits' from the inherited  object
    239239*/
    240 void   FitsIOHandler::Read(char flnm[],int hdunum)
     240void   FitsIOHandler::Read(const char flnm[],int hdunum)
    241241{
    242242  FitsInFile ifts(flnm);
     
    274274
    275275*/
    276 void FitsIOHandler::Write(char flnm[])
     276void FitsIOHandler::Write(const char flnm[])
    277277
    278278{
     
    327327}
    328328
    329 void FitsFile::printerror(int& status, char* texte)
     329void FitsFile::printerror(int& status, const char* texte)
    330330  //*****************************************************/
    331331  //* Print out cfitsio error messages and exit program */
     
    338338  throw IOExc("FitsFile:: error FITSIO status");
    339339}
    340 void FitsFile::printerrorAndContinue(int& status, char* texte)
     340void FitsFile::printerrorAndContinue(int& status, const char* texte)
    341341  //*****************************************************/
    342342  //* Print out cfitsio error messages and exit program */
     
    15341534  char dtype;
    15351535  char card[FLEN_CARD]; 
    1536   char *comkey = "COMMENT";
     1536  const char *comkey = "COMMENT";
    15371537  char comment[FLEN_COMMENT];
    15381538
     
    21982198      char comment[FLEN_COMMENT];
    21992199      char strval[FLEN_VALUE]= "";
    2200       char *comkey = "COMMENT";
     2200      const char *comkey = "COMMENT";
    22012201      //      fits_read_keyword(fptr_, keyname, strval, NULL, &status);
    22022202      //  if (status != 0 || strncmp(keyname,comkey,LEN_KEYWORD-1) == 0 )
     
    25272527      default :
    25282528        {
    2529           char *comkey = "COMMENT";
     2529          const char *comkey = "COMMENT";
    25302530          if(strncmp(keyname,comkey,LEN_KEYWORD-1) == 0)
    25312531            {
Note: See TracChangeset for help on using the changeset viewer.