diff options
| author | qarmin <mikrutrafal54@gmail.com> | 2019-09-22 18:45:08 +0200 |
|---|---|---|
| committer | qarmin <mikrutrafal54@gmail.com> | 2019-09-22 18:45:08 +0200 |
| commit | 50be65bf4314d9b3c5888f5f02d6ffae504aae7a (patch) | |
| tree | cc50e5957fcf9481b5b60919869a20e60b34c2df /editor/editor_audio_buses.cpp | |
| parent | 2e065d8ad07bb20fede0d0c0b2d33d6628033024 (diff) | |
| download | redot-engine-50be65bf4314d9b3c5888f5f02d6ffae504aae7a.tar.gz | |
Changed some code found by Clang Tidy and Coverity
Diffstat (limited to 'editor/editor_audio_buses.cpp')
| -rw-r--r-- | editor/editor_audio_buses.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/editor_audio_buses.cpp b/editor/editor_audio_buses.cpp index 2180742bbb..8faaacc3f6 100644 --- a/editor/editor_audio_buses.cpp +++ b/editor/editor_audio_buses.cpp @@ -1439,7 +1439,7 @@ Size2 EditorAudioMeterNotches::get_minimum_size() const { float width = 0; float height = top_padding + btm_padding; - for (uint8_t i = 0; i < notches.size(); i++) { + for (int i = 0; i < notches.size(); i++) { if (notches[i].render_db_value) { width = MAX(width, font->get_string_size(String::num(Math::abs(notches[i].db_value)) + "dB").x); height += font_height; @@ -1473,7 +1473,7 @@ void EditorAudioMeterNotches::_draw_audio_notches() { Ref<Font> font = get_font("font", "Label"); float font_height = font->get_height(); - for (uint8_t i = 0; i < notches.size(); i++) { + for (int i = 0; i < notches.size(); i++) { AudioNotch n = notches[i]; draw_line(Vector2(0, (1.0f - n.relative_position) * (get_size().y - btm_padding - top_padding) + top_padding), Vector2(line_length, (1.0f - n.relative_position) * (get_size().y - btm_padding - top_padding) + top_padding), |
