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

Unified Diff: ui/base/models/tree_node_model.h

Issue 7171001: ui/base/models: Fix the API example code comment. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/models/tree_node_model.h
diff --git a/ui/base/models/tree_node_model.h b/ui/base/models/tree_node_model.h
index e0f129b5a431b6c64e62d9eadae3601ce545561b..38062a39234b5fb4cdd3ee48cc280affc7a8e926 100644
--- a/ui/base/models/tree_node_model.h
+++ b/ui/base/models/tree_node_model.h
@@ -38,10 +38,10 @@ namespace ui {
// The following example creates a TreeNode with two children and then
// creates a TreeNodeModel from it:
//
-// 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);
+// TreeNodeWithValue<int>* root = new TreeNodeWithValue<int>();
+// 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:
//
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698