nodestack: use initializer list
authorBrian Norris <banorris@uci.edu>
Thu, 4 Oct 2012 21:57:37 +0000 (14:57 -0700)
committerBrian Norris <banorris@uci.edu>
Thu, 4 Oct 2012 21:57:37 +0000 (14:57 -0700)
nodestack.cc

index a73765320dac47e97428390fe37bc3b06ba10483..0be23af47643d269f207e80a474e03ea4ab84847 100644 (file)
@@ -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()