Various small fixes

This commit is contained in:
Alexander Bock
2018-03-14 13:13:23 -04:00
parent 7d1ee75577
commit 2bfab657f3
8 changed files with 41 additions and 23 deletions
+2 -3
View File
@@ -98,8 +98,8 @@ namespace {
node.children.begin(),
node.children.end(),
[p = *path.begin()](const std::unique_ptr<TreeNode>& c) {
return c.get()->path == p;
}
return c.get()->path == p;
}
);
TreeNode* n;
@@ -112,7 +112,6 @@ namespace {
std::unique_ptr<TreeNode> newNode = std::make_unique<TreeNode>(*path.begin());
n = newNode.get();
node.children.push_back(std::move(newNode));
}
// Recurse into the tree and chop off the first path