From e2e59a52df9b86f8a12d7729207c44ebc66a3d41 Mon Sep 17 00:00:00 2001 From: vaxerski Date: Wed, 17 Aug 2022 22:03:49 +0200 Subject: [PATCH] make the linter happy --- src/modules/hyprland/backend.cpp | 5 ++--- src/modules/hyprland/window.cpp | 6 ++++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/modules/hyprland/backend.cpp b/src/modules/hyprland/backend.cpp index 88705d1c..ae73a252 100644 --- a/src/modules/hyprland/backend.cpp +++ b/src/modules/hyprland/backend.cpp @@ -100,8 +100,7 @@ void IPC::parseIPC(const std::string& ev) { } } -void IPC::registerForIPC(const std::string& ev, - std::function fn) { +void IPC::registerForIPC(const std::string& ev, std::function fn) { callbackMutex.lock(); callbacks.emplace_back(std::make_pair(ev, fn)); @@ -169,4 +168,4 @@ std::string IPC::getSocket1Reply(const std::string& rq) { return std::string(buffer); } -} \ No newline at end of file +} // namespace waybar::modules::hyprland \ No newline at end of file diff --git a/src/modules/hyprland/window.cpp b/src/modules/hyprland/window.cpp index f0462a0f..c2923335 100644 --- a/src/modules/hyprland/window.cpp +++ b/src/modules/hyprland/window.cpp @@ -1,8 +1,9 @@ -#include "modules/hyprland/backend.hpp" #include "modules/hyprland/window.hpp" #include +#include "modules/hyprland/backend.hpp" + namespace waybar::modules::hyprland { Window::Window(const std::string& id, const Bar& bar, const Json::Value& config) @@ -58,4 +59,5 @@ void Window::onEvent(const std::string& ev) { dp.emit(); } -} \ No newline at end of file + +} // namespace waybar::modules::hyprland \ No newline at end of file