* Delete all subentries, reset count and num_children and adapt parent's count. */
| 1087 | * Delete all subentries, reset count and num_children and adapt parent's count. |
| 1088 | */ |
| 1089 | void CargoDataEntry::Clear() |
| 1090 | { |
| 1091 | if (this->children != nullptr) this->children->clear(); |
| 1092 | if (this->parent != nullptr) this->parent->count -= this->count; |
| 1093 | this->count = 0; |
| 1094 | this->num_children = 0; |
| 1095 | } |
| 1096 | |
| 1097 | /** |
| 1098 | * Remove a subentry from this one and delete it. |
no test coverage detected