From 424d7c7ac7b4f10da72e9da25a1346c00298af3a Mon Sep 17 00:00:00 2001 From: Brian Norris Date: Thu, 4 Oct 2012 14:57:37 -0700 Subject: [PATCH] nodestack: use initializer list --- nodestack.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nodestack.cc b/nodestack.cc index a737653..0be23af 100644 --- a/nodestack.cc +++ b/nodestack.cc @@ -362,12 +362,12 @@ void Node::explore(thread_id_t tid) explored_children[i] = true; } -NodeStack::NodeStack() - : total_nodes(0) +NodeStack::NodeStack() : + node_list(1, new Node()), + iter(0), + total_nodes(0) { - node_list.push_back(new Node()); total_nodes++; - iter = 0; } NodeStack::~NodeStack() -- 2.34.1