| Index: app/tree_node_model.h
|
| ===================================================================
|
| --- app/tree_node_model.h (revision 31154)
|
| +++ app/tree_node_model.h (working copy)
|
| @@ -109,7 +109,7 @@
|
| int GetTotalNodeCount() const {
|
| int count = 1; // Start with one to include the node itself.
|
| for (size_t i = 0; i < children_->size(); ++i) {
|
| - TreeNode<NodeType>* child = children_[i];
|
| + const TreeNode<NodeType>* child = children_[i];
|
| count += child->GetTotalNodeCount();
|
| }
|
| return count;
|
| @@ -245,7 +245,7 @@
|
| }
|
|
|
| NodeType* AsNode(TreeModelNode* model_node) {
|
| - return reinterpret_cast<NodeType*>(model_node);
|
| + return static_cast<NodeType*>(model_node);
|
| }
|
|
|
| // Sets the title of the specified node.
|
|
|