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:
parent
a7600caea1
commit
ee47c0275e
Notes:
sideshowbarker
2024-07-17 16:42:19 +09:00
Author: https://github.com/BenWiederhake
Commit: ee47c0275e
Pull-request: https://github.com/SerenityOS/serenity/pull/18682
Reviewed-by: https://github.com/MacDue
Reviewed-by: https://github.com/gmta ✅
15 changed files with 26 additions and 26 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue