Changeset 77 in tspsg-svn for trunk/src


Ignore:
Timestamp:
Dec 17, 2009, 1:24:34 PM (14 years ago)
Author:
laleppa
Message:

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

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/tspsolver.cpp

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

    r76 r77  
    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.