Style: Apply clang-tidy's readability-braces-around-statements

This commit is contained in:
Rémi Verschelde
2021-04-05 14:09:59 +02:00
parent 9bbe51dc27
commit d83761ba80
32 changed files with 308 additions and 165 deletions

View File

@@ -620,11 +620,13 @@ int TextParagraph::hit_test(const Point2 &p_coords) const {
const_cast<TextParagraph *>(this)->_shape_lines();
Vector2 ofs;
if (TS->shaped_text_get_orientation(rid) == TextServer::ORIENTATION_HORIZONTAL) {
if (ofs.y < 0)
if (ofs.y < 0) {
return 0;
}
} else {
if (ofs.x < 0)
if (ofs.x < 0) {
return 0;
}
}
for (int i = 0; i < lines.size(); i++) {
if (TS->shaped_text_get_orientation(lines[i]) == TextServer::ORIENTATION_HORIZONTAL) {