Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(353)

Issue 332016: Add a method to TreeNode to return total number of nodes in a subtree.

Created:
11 years, 2 months ago by Munjal (Google)
Modified:
11 years, 2 months ago
Reviewers:
sky
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Add a method to TreeNode to return total number of nodes in a subtree. BUG=25542 TEST=none

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -0 lines) Patch
M app/tree_node_model.h View 1 chunk +11 lines, -0 lines 1 comment Download

Messages

Total messages: 2 (0 generated)
Munjal (Google)
11 years, 2 months ago (2009-10-23 21:19:23 UTC) #1
sky
11 years, 2 months ago (2009-10-23 21:50:21 UTC) #2
LGTM

http://codereview.chromium.org/332016/diff/1/2
File app/tree_node_model.h (right):

http://codereview.chromium.org/332016/diff/1/2#newcode111
Line 111: for (size_t i = 0; i < children_->size()(); ++i) {
()()->()

Powered by Google App Engine
This is Rietveld 408576698