Changeset 140109febb in tspsg for src


Ignore:
Timestamp:
Dec 17, 2009, 1:24:34 PM (14 years ago)
Author:
Oleksii Serdiuk
Branches:
0.1.3.145-beta1-symbian, 0.1.4.170-beta2-bb10, appveyor, imgbot, master, readme
Children:
1fbf016a09
Parents:
fcaa74f7d7
Message:

Fixed crash when the task didn't have a solution.

Location:
src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/tspsolver.cpp

    rfcaa74f7d7 r140109febb  
    217217}
    218218
    219 void CTSPSolver::deleteNode(SStep *node)
     219void CTSPSolver::deleteNode(SStep *&node)
    220220{
    221221        if (node->plNode != NULL)
  • src/tspsolver.h

    rfcaa74f7d7 r140109febb  
    100100        double align(TMatrix &matrix);
    101101        void cleanup();
    102         void deleteNode(SStep *node);
     102        void deleteNode(SStep *&node);
    103103        QList<SCandidate> findCandidate(const TMatrix &matrix, int &nRow, int &nCol) const;
    104104        double findMinInCol(int nCol, const TMatrix &matrix, int exr = -1) const;
Note: See TracChangeset for help on using the changeset viewer.