| 489 | |
| 490 | #if !defined(TORQUE_DISABLE_MEMORY_MANAGER) |
| 491 | static void rotateRight(TreeNode *hdr) |
| 492 | { |
| 493 | TreeNode *temp = hdr->left; |
| 494 | hdr->left = temp->right; |
| 495 | if(temp->right != NIL) |
| 496 | temp->right->parent = hdr; |
| 497 | temp->parent = hdr->parent; |
| 498 | if(temp->parent == NIL) |
| 499 | gFreeTreeRoot = temp; |
| 500 | else if(hdr == hdr->parent->left) |
| 501 | hdr->parent->left = temp; |
| 502 | else |
| 503 | hdr->parent->right = temp; |
| 504 | temp->right = hdr; |
| 505 | hdr->parent = temp; |
| 506 | } |
| 507 | #endif |
| 508 | |
| 509 | #if !defined(TORQUE_DISABLE_MEMORY_MANAGER) |
no outgoing calls
no test coverage detected