Changeset 348 for cpp/frams/genetics/fF


Ignore:
Timestamp:
04/09/15 23:51:28 (9 years ago)
Author:
Maciej Komosinski
Message:
  • explicit c_str() in SString instead of (const char*) cast
  • genetic converters and GenMan? are now thread-local which enables multi-threaded simulator separation
Location:
cpp/frams/genetics/fF
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/genetics/fF/conv_fF.cpp

    r319 r348  
    3939{
    4040        fF_growth_params gp;
    41         if (!gp.load(in)) //invalid input genotype?
     41        if (!gp.load(in.c_str())) //invalid input genotype?
    4242                return ""; //so we return an invalid f0 genotype
    4343
  • cpp/frams/genetics/fF/fF_genotype.h

    r286 r348  
    4343                SString tmp;
    4444                param.save2(tmp, NULL/*object containing default values for comparison*/, false/*add CR*/, false/*force field names*/);
    45                 return string((const char*)tmp);
     45                return string(tmp.c_str());
    4646        }
    4747};
Note: See TracChangeset for help on using the changeset viewer.