@@ -52,7 +52,7 @@ RichTextLabel::Item *RichTextLabel::_get_next_item(Item *p_item, bool p_free) co
52
52
} else if (p_item->E ->next ()) {
53
53
return p_item->E ->next ()->get ();
54
54
} else {
55
- // go up until something with a next is found
55
+ // Go up until something with a next is found.
56
56
while (p_item->parent && !p_item->E ->next ()) {
57
57
p_item = p_item->parent ;
58
58
}
@@ -72,7 +72,7 @@ RichTextLabel::Item *RichTextLabel::_get_next_item(Item *p_item, bool p_free) co
72
72
} else if (p_item->E ->next ()) {
73
73
return p_item->E ->next ()->get ();
74
74
} else {
75
- // go up until something with a next is found
75
+ // Go up until something with a next is found.
76
76
while (p_item->type != ITEM_FRAME && !p_item->E ->next ()) {
77
77
p_item = p_item->parent ;
78
78
}
@@ -84,8 +84,6 @@ RichTextLabel::Item *RichTextLabel::_get_next_item(Item *p_item, bool p_free) co
84
84
}
85
85
}
86
86
}
87
-
88
- return nullptr ;
89
87
}
90
88
91
89
RichTextLabel::Item *RichTextLabel::_get_prev_item (Item *p_item, bool p_free) const {
@@ -97,7 +95,7 @@ RichTextLabel::Item *RichTextLabel::_get_prev_item(Item *p_item, bool p_free) co
97
95
} else if (p_item->E ->prev ()) {
98
96
return p_item->E ->prev ()->get ();
99
97
} else {
100
- // go back until something with a prev is found
98
+ // Go back until something with a prev is found.
101
99
while (p_item->parent && !p_item->E ->prev ()) {
102
100
p_item = p_item->parent ;
103
101
}
@@ -117,7 +115,7 @@ RichTextLabel::Item *RichTextLabel::_get_prev_item(Item *p_item, bool p_free) co
117
115
} else if (p_item->E ->prev ()) {
118
116
return p_item->E ->prev ()->get ();
119
117
} else {
120
- // go back until something with a prev is found
118
+ // Go back until something with a prev is found.
121
119
while (p_item->type != ITEM_FRAME && !p_item->E ->prev ()) {
122
120
p_item = p_item->parent ;
123
121
}
@@ -129,8 +127,6 @@ RichTextLabel::Item *RichTextLabel::_get_prev_item(Item *p_item, bool p_free) co
129
127
}
130
128
}
131
129
}
132
-
133
- return nullptr ;
134
130
}
135
131
136
132
Rect2 RichTextLabel::_get_text_rect () {
0 commit comments