plugin/hypr: fix shadowed decl
This commit is contained in:
parent
dc986c00aa
commit
87d6196e4d
1 changed files with 4 additions and 4 deletions
|
|
@ -95,8 +95,8 @@ bool HyprDevices::updateLastIpcObject(QJsonObject object) {
|
||||||
|
|
||||||
for (auto it = m_keyboards.begin(); it != m_keyboards.end();) {
|
for (auto it = m_keyboards.begin(); it != m_keyboards.end();) {
|
||||||
auto* const keyboard = *it;
|
auto* const keyboard = *it;
|
||||||
const auto inNewValues = std::any_of(val.begin(), val.end(), [keyboard](const QJsonValue& object) {
|
const auto inNewValues = std::any_of(val.begin(), val.end(), [keyboard](const QJsonValue& o) {
|
||||||
return object.toObject().value("address").toString() == keyboard->address();
|
return o.toObject().value("address").toString() == keyboard->address();
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!inNewValues) {
|
if (!inNewValues) {
|
||||||
|
|
@ -112,8 +112,8 @@ bool HyprDevices::updateLastIpcObject(QJsonObject object) {
|
||||||
const auto obj = o.toObject();
|
const auto obj = o.toObject();
|
||||||
const auto addr = obj.value("address").toString();
|
const auto addr = obj.value("address").toString();
|
||||||
|
|
||||||
auto it = std::find_if(m_keyboards.begin(), m_keyboards.end(), [addr](const HyprKeyboard* keyboard) {
|
auto it = std::find_if(m_keyboards.begin(), m_keyboards.end(), [addr](const HyprKeyboard* kb) {
|
||||||
return keyboard->address() == addr;
|
return kb->address() == addr;
|
||||||
});
|
});
|
||||||
|
|
||||||
if (it != m_keyboards.end()) {
|
if (it != m_keyboards.end()) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue