]> Dogcows Code - chaz/openbox/commitdiff
build fixes for member funcs
authorDana Jansens <danakj@orodu.net>
Mon, 30 Dec 2002 06:57:10 +0000 (06:57 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 30 Dec 2002 06:57:10 +0000 (06:57 +0000)
src/bindings.cc

index 7bf7a5d2510c585ce1a71302e96999b614fd481f..481e75d0d505ea988c8cd5ec82901540eefef7f5 100644 (file)
@@ -149,7 +149,7 @@ static void assimilate(BindingTree *parent, BindingTree *node)
 
 int OBBindings::find(BindingTree *search) {
   BindingTree *a, *b;
-  a = _tree;
+  a = _tree.first_child;
   b = search;
   while (a && b) {
     if (a->binding != b->binding) {
@@ -206,7 +206,7 @@ bool OBBindings::add(const StringVect &keylist, int id)
   if (!(tree = buildtree(keylist, id)))
     return false; // invalid binding requested
 
-  if (find_bind(_tree.first_child, tree) < -1) {
+  if (find(tree) < -1) {
     // conflicts with another binding
     destroytree(tree);
     return false;
@@ -226,7 +226,7 @@ int OBBindings::find(const StringVect &keylist)
   if (!(tree = buildtree(keylist, 0)))
     return false; // invalid binding requested
 
-  ret = find_bind(_tree.first_child, tree) >= 0;
+  ret = find(tree) >= 0;
 
   destroytree(tree);
 
This page took 0.023084 seconds and 4 git commands to generate.