Changeset 344 for cpp/frams/genetics


Ignore:
Timestamp:
04/04/15 20:41:07 (10 years ago)
Author:
Maciej Komosinski
Message:

Non-COW string compatibility (const char* is always invalid after string destruction)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/genetics/genman.cpp

    r319 r344  
    198198int GenMan::testValidity(Geno &g, bool &canvalidate)
    199199{
    200         const char *gg = g.getGene();
     200        SString ggs=g.getGene();
     201        const char *gg = ggs;
    201202        GenoOperators *gf = getOper_f(g.getFormat());
    202203        int check1;
Note: See TracChangeset for help on using the changeset viewer.