@@ -514,7 +514,7 @@ namespace snapper
514
514
515
515
int status;
516
516
517
- map<string, tree_node> childs ;
517
+ map<string, tree_node> children ;
518
518
519
519
tree_node* find (const string& name);
520
520
@@ -540,17 +540,17 @@ namespace snapper
540
540
string::size_type pos = name.find (' /' );
541
541
if (pos == string::npos)
542
542
{
543
- iterator it = childs .find (name);
544
- if (it == childs .end ())
543
+ iterator it = children .find (name);
544
+ if (it == children .end ())
545
545
return NULL ;
546
546
547
547
return &it->second ;
548
548
}
549
549
else
550
550
{
551
551
string a = name.substr (0 , pos);
552
- iterator it = childs .find (a);
553
- if (it == childs .end ())
552
+ iterator it = children .find (a);
553
+ if (it == children .end ())
554
554
return NULL ;
555
555
556
556
string b = name.substr (pos + 1 );
@@ -565,18 +565,18 @@ namespace snapper
565
565
string::size_type pos = name.find (' /' );
566
566
if (pos == string::npos)
567
567
{
568
- iterator it = childs .find (name);
569
- if (it == childs .end ())
570
- it = childs .insert (childs .end (), make_pair (name, tree_node ()));
568
+ iterator it = children .find (name);
569
+ if (it == children .end ())
570
+ it = children .insert (children .end (), make_pair (name, tree_node ()));
571
571
572
572
return &it->second ;
573
573
}
574
574
else
575
575
{
576
576
string a = name.substr (0 , pos);
577
- iterator it = childs .find (a);
578
- if (it == childs .end ())
579
- it = childs .insert (childs .end (), make_pair (a, tree_node ()));
577
+ iterator it = children .find (a);
578
+ if (it == children .end ())
579
+ it = children .insert (children .end (), make_pair (a, tree_node ()));
580
580
581
581
string b = name.substr (pos + 1 );
582
582
return it->second .insert (b);
@@ -590,12 +590,12 @@ namespace snapper
590
590
string::size_type pos = name.find (' /' );
591
591
if (pos == string::npos)
592
592
{
593
- iterator it = childs .find (name);
594
- if (it == childs .end ())
593
+ iterator it = children .find (name);
594
+ if (it == children .end ())
595
595
return false ;
596
596
597
- if (it->second .childs .empty ())
598
- childs .erase (it);
597
+ if (it->second .children .empty ())
598
+ children .erase (it);
599
599
else
600
600
it->second .status = 0 ;
601
601
@@ -604,15 +604,15 @@ namespace snapper
604
604
else
605
605
{
606
606
string a = name.substr (0 , pos);
607
- iterator it = childs .find (a);
608
- if (it == childs .end ())
607
+ iterator it = children .find (a);
608
+ if (it == children .end ())
609
609
return false ;
610
610
611
611
string b = name.substr (pos + 1 );
612
612
it->second .erase (b);
613
613
614
- if (it->second .status == 0 && it->second .childs .empty ())
615
- childs .erase (it);
614
+ if (it->second .status == 0 && it->second .children .empty ())
615
+ children .erase (it);
616
616
617
617
return true ;
618
618
}
@@ -631,7 +631,7 @@ namespace snapper
631
631
return false ;
632
632
633
633
nn = insert (n);
634
- swap (nn->childs , oo->childs );
634
+ swap (nn->children , oo->children );
635
635
nn->status = oo->status ;
636
636
erase (o);
637
637
@@ -642,7 +642,7 @@ namespace snapper
642
642
void
643
643
tree_node::dump (const string& prefix) const
644
644
{
645
- for (const_iterator it = childs .begin (); it != childs .end (); ++it)
645
+ for (const_iterator it = children .begin (); it != children .end (); ++it)
646
646
{
647
647
if (prefix.empty ())
648
648
{
@@ -721,7 +721,7 @@ namespace snapper
721
721
void
722
722
tree_node::check (StreamProcessor* processor, const string& prefix)
723
723
{
724
- for (iterator it = childs .begin (); it != childs .end (); ++it)
724
+ for (iterator it = children .begin (); it != children .end (); ++it)
725
725
{
726
726
if (prefix.empty ())
727
727
{
@@ -740,7 +740,7 @@ namespace snapper
740
740
void
741
741
tree_node::result (cmpdirs_cb_t cb, const string& prefix) const
742
742
{
743
- for (const_iterator it = childs .begin (); it != childs .end (); ++it)
743
+ for (const_iterator it = children .begin (); it != children .end (); ++it)
744
744
{
745
745
if (prefix.empty ())
746
746
{
@@ -914,7 +914,7 @@ namespace snapper
914
914
merge (StreamProcessor* processor, tree_node* tmp, const string& from, const string& to,
915
915
const string& prefix = " " )
916
916
{
917
- for (tree_node::iterator it = tmp->childs .begin (); it != tmp->childs .end (); ++it)
917
+ for (tree_node::iterator it = tmp->children .begin (); it != tmp->children .end (); ++it)
918
918
{
919
919
if (prefix.empty ())
920
920
{
@@ -1001,7 +1001,7 @@ namespace snapper
1001
1001
else
1002
1002
{
1003
1003
tree_node tmp;
1004
- swap (it1->childs , tmp.childs );
1004
+ swap (it1->children , tmp.children );
1005
1005
1006
1006
processor->deleted (from);
1007
1007
processor->created (to);
0 commit comments