Style: Enforce braces around if blocks and loops
Using clang-tidy's `readability-braces-around-statements`. https://clang.llvm.org/extra/clang-tidy/checks/readability-braces-around-statements.html
This commit is contained in:
@ -810,8 +810,9 @@ void fill_default_theme(Ref<Theme> &theme, const Ref<Font> &default_font, const
|
||||
// TooltipPanel
|
||||
|
||||
Ref<StyleBoxTexture> style_tt = make_stylebox(tooltip_bg_png, 4, 4, 4, 4);
|
||||
for (int i = 0; i < 4; i++)
|
||||
for (int i = 0; i < 4; i++) {
|
||||
style_tt->set_expand_margin_size((Margin)i, 4 * scale);
|
||||
}
|
||||
|
||||
theme->set_stylebox("panel", "TooltipPanel", style_tt);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user