DOM: Fixed ::count bug

This commit is contained in:
Paul Beckingham 2017-04-29 11:10:57 -04:00
parent d5a7769b4f
commit 0ea3215e7a

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 ();