CI: Update to clang-format 11 and apply ternary operator changes

(cherry picked from commit af878716f2)
This commit is contained in:
Rémi Verschelde 2021-01-12 16:57:55 +01:00
parent ef683e761d
commit 188609e5ab
No known key found for this signature in database
GPG key ID: C3336907360768E1
15 changed files with 41 additions and 39 deletions

View file

@ -352,8 +352,8 @@ void CurveEditor::open_context_menu(Vector2 pos) {
_context_menu->add_check_item(TTR("Linear"), CONTEXT_LINEAR);
bool is_linear = _selected_tangent == TANGENT_LEFT ?
_curve_ref->get_point_left_mode(_selected_point) == Curve::TANGENT_LINEAR :
_curve_ref->get_point_right_mode(_selected_point) == Curve::TANGENT_LINEAR;
_curve_ref->get_point_left_mode(_selected_point) == Curve::TANGENT_LINEAR :
_curve_ref->get_point_right_mode(_selected_point) == Curve::TANGENT_LINEAR;
_context_menu->set_item_checked(_context_menu->get_item_index(CONTEXT_LINEAR), is_linear);