summaryrefslogtreecommitdiff
path: root/plugin/src/Caelestia
diff options
context:
space:
mode:
authorSoramane <61896496+soramanew@users.noreply.github.com>2025-09-26 16:33:27 +1000
committerSoramane <61896496+soramanew@users.noreply.github.com>2025-09-26 16:33:27 +1000
commit87d6196e4db057d51187eca04a23851d7e8de869 (patch)
tree49c2a4a4e055a8c4db57da43868345e9f8a91149 /plugin/src/Caelestia
parentplugin: add sleep notifier (diff)
downloadcaelestia-shell-87d6196e4db057d51187eca04a23851d7e8de869.tar.gz
caelestia-shell-87d6196e4db057d51187eca04a23851d7e8de869.tar.bz2
caelestia-shell-87d6196e4db057d51187eca04a23851d7e8de869.zip
plugin/hypr: fix shadowed decl
Diffstat (limited to 'plugin/src/Caelestia')
-rw-r--r--plugin/src/Caelestia/Internal/hyprdevices.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugin/src/Caelestia/Internal/hyprdevices.cpp b/plugin/src/Caelestia/Internal/hyprdevices.cpp
index 3aa0158..3eba7e4 100644
--- a/plugin/src/Caelestia/Internal/hyprdevices.cpp
+++ b/plugin/src/Caelestia/Internal/hyprdevices.cpp
@@ -95,8 +95,8 @@ bool HyprDevices::updateLastIpcObject(QJsonObject object) {
for (auto it = m_keyboards.begin(); it != m_keyboards.end();) {
auto* const keyboard = *it;
- const auto inNewValues = std::any_of(val.begin(), val.end(), [keyboard](const QJsonValue& object) {
- return object.toObject().value("address").toString() == keyboard->address();
+ const auto inNewValues = std::any_of(val.begin(), val.end(), [keyboard](const QJsonValue& o) {
+ return o.toObject().value("address").toString() == keyboard->address();
});
if (!inNewValues) {
@@ -112,8 +112,8 @@ bool HyprDevices::updateLastIpcObject(QJsonObject object) {
const auto obj = o.toObject();
const auto addr = obj.value("address").toString();
- auto it = std::find_if(m_keyboards.begin(), m_keyboards.end(), [addr](const HyprKeyboard* keyboard) {
- return keyboard->address() == addr;
+ auto it = std::find_if(m_keyboards.begin(), m_keyboards.end(), [addr](const HyprKeyboard* kb) {
+ return kb->address() == addr;
});
if (it != m_keyboards.end()) {