24#include <rtl/ustring.hxx>
36 bool wasPresent =
false;
37 for (
auto const& pathItem : path) {
38 Node::Children::iterator j(
p->children.find(pathItem));
39 if (j ==
p->children.end()) {
40 if (wasPresent &&
p->children.empty()) {
43 j =
p->children.emplace(pathItem,
Node()).first;
54 assert(!path.empty());
56 for (
auto i(path.begin());;) {
57 Node::Children::iterator j(
p->children.find(*
i));
58 if (j ==
p->children.end()) {
61 if (++
i == path.end()) {
63 if (
p->children.empty()) {
64 std::vector<OUString> parent(path);
void add(std::vector< OUString > const &path)
void remove(std::vector< OUString > const &path)