From: Brian Norris Date: Thu, 4 Oct 2012 21:57:37 +0000 (-0700) Subject: nodestack: use initializer list X-Git-Tag: pldi2013~102^2~1 X-Git-Url: http://plrg.eecs.uci.edu/git/?p=model-checker.git;a=commitdiff_plain;h=424d7c7ac7b4f10da72e9da25a1346c00298af3a nodestack: use initializer list --- 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()