Changeset 658 for trunk/lib


Ignore:
Timestamp:
Jun 11, 2008, 12:54:42 AM (13 years ago)
Author:
Peter Johansson
Message:

using vector<Node*> to store daughters in Directory. For historical reasons a link was used before.

Location:
trunk/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Directory.cc

    r653 r658  
    8989        }
    9090      }
    91     daughters_.sort(NodePtrLess());
     91    std::sort(daughters_.begin(), daughters_.end(), NodePtrLess());
    9292  }
    9393
  • trunk/lib/Directory.h

    r653 r658  
    107107
    108108
    109     typedef std::list<Node*> NodeContainer;
     109    typedef std::vector<Node*> NodeContainer;
    110110    typedef NodeContainer::iterator NodeIterator;
    111111    typedef NodeContainer::const_iterator NodeConstIterator;
Note: See TracChangeset for help on using the changeset viewer.