Changeset 348 for cpp/frams/genetics/fT


Ignore:
Timestamp:
04/09/15 23:51:28 (10 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
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/genetics/fT/oper_fTest.cpp

    r319 r348  
    7777                if (strchr("ATGC", gene[i])) validated += gene[i];  //validated contains only ATGC
    7878        free(gene);
    79         gene = strdup(validated); //reallocate
     79        gene = strdup(validated.c_str()); //reallocate
    8080        return GENOPER_OK;
    8181}
Note: See TracChangeset for help on using the changeset viewer.