diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-01 20:49:53 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-01 20:49:53 +0000 |
commit | 9266063879e55469eb590eb40b6c8d5ff6cd7ef9 (patch) | |
tree | b649799e319498290fb106fc28a63f2ad8b8380f | |
parent | ef6b0d96a6f4ecdaaf288f082ee67079b83a80bf (diff) | |
download | chromium_src-9266063879e55469eb590eb40b6c8d5ff6cd7ef9.zip chromium_src-9266063879e55469eb590eb40b6c8d5ff6cd7ef9.tar.gz chromium_src-9266063879e55469eb590eb40b6c8d5ff6cd7ef9.tar.bz2 |
ui/base/models: Fix TreeNode sample comment.
BUG=None
TEST=None
R=sky@chromium.org
Review URL: http://codereview.chromium.org/7006026
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87521 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | ui/base/models/tree_node_model.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/ui/base/models/tree_node_model.h b/ui/base/models/tree_node_model.h index b5fdaa8..ef495b2 100644 --- a/ui/base/models/tree_node_model.h +++ b/ui/base/models/tree_node_model.h @@ -38,12 +38,10 @@ namespace ui { // The following example creates a TreeNode with two children and then // creates a TreeNodeModel from it: // -// TreeNodeWithValue<int> root = -// new TreeNodeWithValue<int>(ASCIIToUTF16("root"), 0); -// root.add(new TreeNodeWithValue<int>(ASCIIToUTF16("child 1"), 1)); -// root.add(new TreeNodeWithValue<int>(ASCIIToUTF16("child 2"), 1)); -// TreeNodeModel<TreeNodeWithValue<int>>* model = -// new TreeNodeModel<TreeNodeWithValue<int>>(root); +// TreeNodeWithValue<int> root; +// root.Add(new TreeNodeWithValue<int>(ASCIIToUTF16("child 1"), 0)); +// root.Add(new TreeNodeWithValue<int>(ASCIIToUTF16("child 2"), 1)); +// TreeNodeModel<TreeNodeWithValue<int> > model(&root); // // Two variants of TreeNode are provided here: // |