Changeset 348 for cpp/frams/genetics/f9


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/f9/oper_f9.cpp

    r319 r348  
    4242                if (strchr(turtle_commands_f9, gene[i])) validated += gene[i];  //validated contains only turtle_commands_f9
    4343        free(gene);
    44         gene = strdup(validated); //reallocate
     44        gene = strdup(validated.c_str()); //reallocate
    4545        return GENOPER_OK;
    4646}
     
    8484                }
    8585                free(gene);
    86                 gene = strdup(newgeno); //reallocate
     86                gene = strdup(newgeno.c_str()); //reallocate
    8787        }
    8888
Note: See TracChangeset for help on using the changeset viewer.