1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-09 09:34:57 +09:00

Everywhere: Run spellcheck on all documentation

This commit is contained in:
Ben Wiederhake 2023-05-06 16:28:34 +02:00 committed by Jelle Raaijmakers
parent a7600caea1
commit ee47c0275e
Notes: sideshowbarker 2024-07-17 16:42:19 +09:00
15 changed files with 26 additions and 26 deletions

View file

@ -243,9 +243,9 @@ protected:
// in place, this is quite a bit more expensive, as well as much less readable, is there a better way?
if (node->left_child && node->right_child) {
auto* successor_node = successor(node); // this is always non-null as all nodes besides the maximum node have a successor, and the maximum node has no right child
auto neighbour_swap = successor_node->parent == node;
auto neighbor_swap = successor_node->parent == node;
node->left_child->parent = successor_node;
if (!neighbour_swap)
if (!neighbor_swap)
node->right_child->parent = successor_node;
if (node->parent) {
if (node->parent->left_child == node) {
@ -258,7 +258,7 @@ protected:
}
if (successor_node->right_child)
successor_node->right_child->parent = node;
if (neighbour_swap) {
if (neighbor_swap) {
successor_node->parent = node->parent;
node->parent = successor_node;
} else {
@ -274,7 +274,7 @@ protected:
swap(node->parent, successor_node->parent);
}
swap(node->left_child, successor_node->left_child);
if (neighbour_swap) {
if (neighbor_swap) {
node->right_child = successor_node->right_child;
successor_node->right_child = node;
} else {