Skip to content

Commit

Permalink
[ci] Add some missing casts
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Apr 26, 2024
1 parent d7eb9d7 commit 4e8e620
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/halp/controls.sliders.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ struct xy_pad_t
}
static clang_buggy_consteval auto name() { return std::string_view{lit.value}; }

value_type value = {setup.init, setup.init};
value_type value = {T(setup.init), T(setup.init)};

operator value_type&() noexcept { return value; }
operator const value_type&() const noexcept { return value; }
Expand Down Expand Up @@ -141,7 +141,7 @@ struct xy_spinboxes_t
return std::string_view{lit.value};
}

value_type value = {setup.init, setup.init};
value_type value = {T(setup.init), T(setup.init)};

operator value_type&() noexcept { return value; }
operator const value_type&() const noexcept { return value; }
Expand Down Expand Up @@ -170,7 +170,7 @@ struct xyz_spinboxes_t
return std::string_view{lit.value};
}

value_type value = {setup.init, setup.init, setup.init};
value_type value = {T(setup.init), T(setup.init), T(setup.init)};

operator value_type&() noexcept { return value; }
operator const value_type&() const noexcept { return value; }
Expand Down Expand Up @@ -199,7 +199,7 @@ struct range_editor_t
return std::string_view{lit.value};
}

value_type value{setup.init.start, setup.init.end};
value_type value{T(setup.init.start), T(setup.init.end)};

operator value_type&() noexcept { return value; }
operator const value_type&() const noexcept { return value; }
Expand Down

0 comments on commit 4e8e620

Please sign in to comment.