DOM: Fixed ::count bug

This commit is contained in:
Paul Beckingham 2017-04-29 11:10:57 -04:00
parent fc58d1e14d
commit 7e4dd24d86

View file

@ -515,10 +515,8 @@ std::vector <std::string> DOM::decomposeReference (const std::string& reference)
////////////////////////////////////////////////////////////////////////////////
int DOM::count () const
{
// This branch.
int total = 1;
// Recurse and count the branches.
int total {0};
for (auto& i : _branches)
total += i->count ();