From 7e4dd24d861dc5567145bd5a115bcb022f5d2dd0 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 29 Apr 2017 11:10:57 -0400 Subject: [PATCH] DOM: Fixed ::count bug --- src/DOM.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/DOM.cpp b/src/DOM.cpp index 078e00ff1..e85010ac5 100644 --- a/src/DOM.cpp +++ b/src/DOM.cpp @@ -515,10 +515,8 @@ std::vector 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 ();