mirror of
https://github.com/godotengine/godot.git
synced 2025-11-03 15:11:19 +00:00
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
|
|
@ -97,8 +97,9 @@ void AudioStreamEditor::_preview_changed(ObjectID p_which) {
|
|||
}
|
||||
|
||||
void AudioStreamEditor::_changed_callback(Object *p_changed, const char *p_prop) {
|
||||
if (!is_visible())
|
||||
if (!is_visible()) {
|
||||
return;
|
||||
}
|
||||
update();
|
||||
}
|
||||
|
||||
|
|
@ -170,8 +171,9 @@ void AudioStreamEditor::_seek_to(real_t p_x) {
|
|||
}
|
||||
|
||||
void AudioStreamEditor::edit(Ref<AudioStream> p_stream) {
|
||||
if (!stream.is_null())
|
||||
if (!stream.is_null()) {
|
||||
stream->remove_change_receptor(this);
|
||||
}
|
||||
|
||||
stream = p_stream;
|
||||
_player->set_stream(stream);
|
||||
|
|
@ -242,8 +244,9 @@ AudioStreamEditor::AudioStreamEditor() {
|
|||
|
||||
void AudioStreamEditorPlugin::edit(Object *p_object) {
|
||||
AudioStream *s = Object::cast_to<AudioStream>(p_object);
|
||||
if (!s)
|
||||
if (!s) {
|
||||
return;
|
||||
}
|
||||
|
||||
audio_editor->edit(Ref<AudioStream>(s));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue