Changeset 199 for cpp/frams/genetics


Ignore:
Timestamp:
03/29/14 00:03:35 (10 years ago)
Author:
Maciej Komosinski
Message:

Avoid const char*/char* compilation warnings

Location:
cpp/frams/genetics
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/genetics/f4/oper_f4.cpp

    r197 r199  
    4242        par.setDefault();
    4343
    44         mutation_method_names = new char*[F4_COUNT + F4_ADD_COUNT - 1];
     44        mutation_method_names = new const char*[F4_COUNT + F4_ADD_COUNT - 1];
    4545        int index = 0;
    4646        mutation_method_names[index++] = "added division";
  • cpp/frams/genetics/oper_fx.h

    r197 r199  
    8282   Param par;
    8383   char supported_format; ///<genotype format which is supported by this class ('6' for GenoOper_f6, 'F' for GenoOper_fF, etc.). Must be initialized in constructor
    84    SString name; ///<name of this set of genetic operators
    85    char **mutation_method_names; ///<array of names for mutation methods. If initialized (by new char*[]), must have entries for each method index returned by mutate(geno,chg,METHOD).  If initialized, it is automatically freed by this destructor.
     84   string name; ///<name of this set of genetic operators
     85   const char **mutation_method_names; ///<array of names for mutation methods. If initialized (by new char*[]), must have entries for each method index returned by mutate(geno,chg,METHOD).  If initialized, it is automatically freed by this destructor.
    8686   GenoOperators() : par(empty_paramtab) {supported_format='x'; name="Default"; mutation_method_names=NULL; setDefaults();}
    8787
Note: See TracChangeset for help on using the changeset viewer.