Ignore:
Timestamp:
10/10/18 01:13:05 (3 years ago)
Author:
Maciej Komosinski
Message:

Performance and stability improvements in fB, fH, and fL; improved parsing and math evaluations in fL

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/genetics/fL/fL_general.cpp

    r803 r821  
    488488                std::string message = "Error in parsing parameters at line:  " + std::to_string(linenumber);
    489489                logMessage("fL_Builder", "processLine", LOG_ERROR, message.c_str());
    490                 delete obj;
     490                if (obj != this) delete obj;
    491491                return begin + 1;
    492492        }
     
    13391339}
    13401340
    1341 int fL_Builder::countSticksInSequence(std::list<fL_Word *> sequence)
     1341int fL_Builder::countSticksInSequence(std::list<fL_Word *> *sequence)
    13421342{
    13431343        int count = 0;
    1344         for (std::list<fL_Word *>::iterator it = sequence.begin(); it != sequence.end(); it++)
     1344        for (std::list<fL_Word *>::iterator it = sequence->begin(); it != sequence->end(); it++)
    13451345        {
    13461346                if ((*it)->builtin && (*it)->name == "S")
Note: See TracChangeset for help on using the changeset viewer.