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:
parent
07bc4e2f96
commit
0ee0fa42e6
683 changed files with 22803 additions and 12225 deletions
|
|
@ -146,8 +146,9 @@ void EditorPluginSettings::update_plugins() {
|
|||
}
|
||||
|
||||
void EditorPluginSettings::_plugin_activity_changed() {
|
||||
if (updating)
|
||||
if (updating) {
|
||||
return;
|
||||
}
|
||||
|
||||
TreeItem *ti = plugin_list->get_edited();
|
||||
ERR_FAIL_COND(!ti);
|
||||
|
|
@ -172,8 +173,9 @@ void EditorPluginSettings::_create_clicked() {
|
|||
|
||||
void EditorPluginSettings::_cell_button_pressed(Object *p_item, int p_column, int p_id) {
|
||||
TreeItem *item = Object::cast_to<TreeItem>(p_item);
|
||||
if (!item)
|
||||
if (!item) {
|
||||
return;
|
||||
}
|
||||
if (p_id == BUTTON_PLUGIN_EDIT) {
|
||||
if (p_column == 4) {
|
||||
String dir = item->get_metadata(0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue