--- a/src/node/node-list.cc Thu May 10 07:25:47 2007 +0200
+++ b/src/node/node-list.cc Thu May 10 07:30:37 2007 +0200
@@ -53,7 +53,7 @@
NodeList::Iterator Begin (void);
NodeList::Iterator End (void);
TraceResolver *CreateTraceResolver (TraceContext const &context);
- Ptr<Node> PeekNode (uint32_t n);
+ Node *PeekNode (uint32_t n);
uint32_t GetNNodes (void);
private:
@@ -69,7 +69,7 @@
{
Ptr<Node> node = *i;
node->Dispose ();
- //node->Unref ();
+ *i = 0;
}
m_nodes.erase (m_nodes.begin (), m_nodes.end ());
}
@@ -79,7 +79,6 @@
NodeListPriv::Add (Ptr<Node> node)
{
uint32_t index = m_nodes.size ();
- //node->Ref ();
m_nodes.push_back (node);
return index;
@@ -99,10 +98,10 @@
{
return m_nodes.size ();
}
-Ptr<Node>
+Node *
NodeListPriv::PeekNode (uint32_t n)
{
- return m_nodes[n];
+ return m_nodes[n].Peek ();
}
TraceResolver *