diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-12-30 06:57:10 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-12-30 06:57:10 +0000 |
| commit | 624a06fdffadfadbf6ac14068bbd329cc0a5834f (patch) | |
| tree | cc9b70e922c7f11a6af50b3d237ec7cc683ac14d | |
| parent | 656f2fbecf7f74e497353a4bff902ec16937cfc4 (diff) | |
build fixes for member funcs
| -rw-r--r-- | src/bindings.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bindings.cc b/src/bindings.cc index 7bf7a5d2..481e75d0 100644 --- a/src/bindings.cc +++ b/src/bindings.cc @@ -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); |
