rename XHelper members to onX
Review URL: http://codereview.appspot.com/4380056/
git-svn-id: http://skia.googlecode.com/svn/trunk@1113 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/gpu/src/GrRedBlackTree.h b/gpu/src/GrRedBlackTree.h
index 7ba326f..b57ce9e 100644
--- a/gpu/src/GrRedBlackTree.h
+++ b/gpu/src/GrRedBlackTree.h
@@ -163,7 +163,7 @@
void deleteAtNode(Node* x);
static void RecursiveDelete(Node* x);
- int countOfHelper(const Node* n, const T& t) const;
+ int onCountOf(const Node* n, const T& t) const;
#if GR_DEBUG
void validate() const;
@@ -312,11 +312,11 @@
template <typename T, typename C>
int GrRedBlackTree<T,C>::countOf(const T& t) const {
- return countOfHelper(fRoot, t);
+ return onCountOf(fRoot, t);
}
template <typename T, typename C>
-int GrRedBlackTree<T,C>::countOfHelper(const Node* n, const T& t) const {
+int GrRedBlackTree<T,C>::onCountOf(const Node* n, const T& t) const {
// this is count*log(n) :(
while (NULL != n) {
if (fComp(t, n->fItem)) {
@@ -324,8 +324,8 @@
} else {
if (!fComp(n->fItem, t)) {
int count = 1;
- count += countOfHelper(n->fChildren[kLeft_Child], t);
- count += countOfHelper(n->fChildren[kRight_Child], t);
+ count += onCountOf(n->fChildren[kLeft_Child], t);
+ count += onCountOf(n->fChildren[kRight_Child], t);
return count;
}
n = n->fChildren[kRight_Child];