Skip to content

Commit 71ecd1f

Browse files
committed
Merge branch 'skia_2024'
2 parents 15f9fa8 + 6ba55d8 commit 71ecd1f

File tree

4 files changed

+7
-9
lines changed

4 files changed

+7
-9
lines changed

lib/include/elements/element/label.hpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ namespace cycfi::elements
289289
using param_type = typename receiver<T>::param_type;
290290
using getter_type = typename receiver<T>::getter_type;
291291

292-
as_label_element(F&& as_string, Subject label);
292+
as_label_element(F as_string, Subject label);
293293

294294
void value(param_type val) override;
295295
getter_type value() const override;
@@ -549,7 +549,7 @@ namespace cycfi::elements
549549
* The subject.
550550
*/
551551
template <concepts::Element Subject, typename T, typename F>
552-
inline as_label_element<Subject, T, F>::as_label_element(F&& as_string, Subject subject)
552+
inline as_label_element<Subject, T, F>::as_label_element(F as_string, Subject subject)
553553
: _as_string(as_string)
554554
, base_type(std::move(subject))
555555
{}
@@ -630,8 +630,7 @@ namespace cycfi::elements
630630
inline as_label_element<remove_cvref_t<Subject>, T, remove_cvref_t<F>>
631631
as_label(F&& as_string, Subject&& subject)
632632
{
633-
using ftype = remove_cvref_t<F>;
634-
return {std::forward<ftype>(as_string), std::forward<Subject>(subject)};
633+
return {std::forward<F>(as_string), std::forward<Subject>(subject)};
635634
}
636635

637636
/**

lib/include/elements/element/style/dial.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,8 @@ namespace cycfi::elements
208208
radial_labels(Subject&& subject, float font_size, S&&... s)
209209
{
210210
auto r = radial_labels_styler<size, remove_cvref_t<Subject>, sizeof...(S)>
211-
{std::move(subject), font_size};
212-
r._labels = {{std::move(s)...}};
211+
{std::forward<Subject>(subject), font_size};
212+
r._labels = {{std::forward<S>(s)...}};
213213
return r;
214214
}
215215
}

lib/include/elements/element/style/thumbwheel.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,8 @@ namespace cycfi::elements
9494
template <typename F>
9595
inline auto vthumbwheel(std::size_t num_items, F&& compose)
9696
{
97-
using ftype = remove_cvref_t<F>;
9897
auto body = basic_vthumbwheel(
99-
list{basic_cell_composer(num_items, std::forward<ftype>(compose))}
98+
list{basic_cell_composer(num_items, std::forward<F>(compose))}
10099
, 1.0 / (num_items-1)
101100
);
102101
return thumbwheel(std::move(body), {0.0f, 0.0f});

lib/src/element/drag_and_drop.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ namespace cycfi::elements
3535
proxy_base::prepare_subject(ctx);
3636
std::string id = address_to_string(this);
3737
if (_mime_types.find(id) == _mime_types.end())
38-
_mime_types.insert(id);
38+
_mime_types.insert(std::move(id));
3939
}
4040

4141
void drop_receiver::track_drop(context const& ctx, drop_info const& info, cursor_tracking status)

0 commit comments

Comments
 (0)