mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
DOM: Fixed ::count bug
This commit is contained in:
parent
d5a7769b4f
commit
0ea3215e7a
1 changed files with 1 additions and 3 deletions
|
@ -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 ();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue