Skip to content

Commit

Permalink
implementing some clang-tidy suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmm committed Jan 18, 2024
1 parent 978761c commit 3f76ce2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions include/lv2_wrapper.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ class Lv2Wrapper {
}),
this);

gsettings_sync_funcs.emplace_back([=, this]() {
gsettings_sync_funcs.emplace_back([&, this]() {
g_settings_set_boolean(settings, gkey_wrapper.msg.data(),
static_cast<gboolean>(get_control_port_value(key_wrapper.msg.data())));
});
Expand All @@ -162,7 +162,7 @@ class Lv2Wrapper {
}),
this);

gsettings_sync_funcs.emplace_back([=, this]() {
gsettings_sync_funcs.emplace_back([&, this]() {
g_settings_set_enum(settings, gkey_wrapper.msg.data(),
static_cast<gint>(get_control_port_value(key_wrapper.msg.data())));
});
Expand All @@ -182,7 +182,7 @@ class Lv2Wrapper {
}),
this);

gsettings_sync_funcs.emplace_back([=, this]() {
gsettings_sync_funcs.emplace_back([&, this]() {
g_settings_set_int(settings, gkey_wrapper.msg.data(),
static_cast<gint>(get_control_port_value(key_wrapper.msg.data())));
});
Expand All @@ -202,7 +202,7 @@ class Lv2Wrapper {
}),
this);

gsettings_sync_funcs.emplace_back([=, this]() {
gsettings_sync_funcs.emplace_back([&, this]() {
g_settings_set_double(settings, gkey_wrapper.msg.data(),
static_cast<gdouble>(get_control_port_value(key_wrapper.msg.data())));
});
Expand Down Expand Up @@ -231,7 +231,7 @@ class Lv2Wrapper {
}),
this);

gsettings_sync_funcs.emplace_back([=, this]() {
gsettings_sync_funcs.emplace_back([&, this]() {
const auto linear_v = get_control_port_value(key_wrapper.msg.data());

const auto db_v = (!lower_bound & (linear_v == 0.0F)) ? util::minimum_db_d_level : util::linear_to_db(linear_v);
Expand Down

0 comments on commit 3f76ce2

Please sign in to comment.