| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent c8da8c8 commit 804d880
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -73,7 +73,7 @@ namespace node { | |||
| 73 | 73 | ||
| 74 | 74 | namespace permission { | |
| 75 | 75 | ||
| 76 | - void PrintTree(FSPermission::RadixTree::Node* node, int spaces = 0) { | ||
| 76 | + void PrintTree(const FSPermission::RadixTree::Node* node, size_t spaces = 0) { | ||
| 77 | 77 | std::string whitespace(spaces, ' '); | |
| 78 | 78 | ||
| 79 | 79 | if (node == nullptr) { | |
@@ -90,8 +90,8 @@ void PrintTree(FSPermission::RadixTree::Node* node, int spaces = 0) { | |||
| 90 | 90 | whitespace, | |
| 91 | 91 | node->prefix); | |
| 92 | 92 | if (node->children.size()) { | |
| 93 | - int child = 0; | ||
| 94 | - for (const auto pair : node->children) { | ||
| 93 | + size_t child = 0; | ||
| 94 | + for (const auto& pair : node->children) { | ||
| 95 | 95 | ++child; | |
| 96 | 96 | per_process::Debug(DebugCategory::PERMISSION_MODEL, | |
| 97 | 97 | "%s Child(%s): %s\n", | |
| Back | FazBrowse Home | New Git URL |
0 commit comments