Skip to content

Commit 0479c27

Browse files
committed
Happy linter
Signed-off-by: Viktar Lukashonak <myxabeer@gmail.com>
1 parent c4fec07 commit 0479c27

File tree

8 files changed

+10
-10
lines changed

8 files changed

+10
-10
lines changed

include/modules/dwl/tags.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class Tags final : public waybar::AModule {
2121
struct wl_seat *seat_;
2222

2323
private:
24-
const waybar::Bar& bar_;
24+
const waybar::Bar &bar_;
2525
Gtk::Box box_;
2626
std::vector<Gtk::Button> buttons_;
2727
std::vector<Glib::RefPtr<Gtk::GestureClick>> clickControls_;

include/modules/dwl/window.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class Window : public AAppIconLabel, public sigc::trackable {
2424
struct zdwl_ipc_manager_v2 *status_manager_;
2525

2626
private:
27-
const Bar& bar_;
27+
const Bar &bar_;
2828
std::string title_;
2929
std::string appid_;
3030
std::string layout_symbol_;

include/modules/image.hpp

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
#include "util/command.hpp"
88
#include "util/sleeper_thread.hpp"
99

10-
1110
namespace waybar::modules {
1211

1312
class Image final : public AModule {

include/util/css_reload_helper.hpp

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ class CssReloadHelper {
3838
void handleFileChange(Glib::RefPtr<Gio::File> const& file,
3939
Glib::RefPtr<Gio::File> const& other_type,
4040
Gio::FileMonitor::Event event_type);
41+
4142
private:
4243
std::string m_cssFile;
4344

src/client.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#include "client.hpp"
22

33
#include <gtk4-layer-shell.h>
4+
#include <gtkmm/application.h>
5+
#include <gtkmm/icontheme.h>
46
#include <spdlog/spdlog.h>
57

68
#include <iostream>
79

8-
#include <gtkmm/application.h>
9-
#include <gtkmm/icontheme.h>
1010
#include "idle-inhibit-unstable-v1-client-protocol.h"
1111
#include "util/clara.hpp"
1212
#include "util/format.hpp"

src/modules/network.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
#include "modules/network.hpp"
22

33
#include <arpa/inet.h>
4-
#include <fstream>
54
#include <glibmm/markup.h>
65
#include <linux/if.h>
76
#include <linux/nl80211.h>
87
#include <netlink/genl/ctrl.h>
98
#include <spdlog/spdlog.h>
109
#include <sys/eventfd.h>
1110

11+
#include <fstream>
12+
1213
#include "util/format.hpp"
1314

1415
namespace {
@@ -667,7 +668,7 @@ int waybar::modules::Network::handleEvents(struct nl_msg *msg, void *data) {
667668
/* Ask ifname associated with temp_idx as well as carrier status */
668669
struct ifinfomsg ifinfo_hdr {
669670
.ifi_family = AF_UNSPEC, .ifi_index = temp_idx,
670-
};
671+
};
671672
int err;
672673
err = nl_send_simple(net->ev_sock_, RTM_GETLINK, NLM_F_REQUEST, &ifinfo_hdr,
673674
sizeof(ifinfo_hdr));

src/modules/pulseaudio.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ bool Pulseaudio::handleScroll(double dx, double dy) {
3131
}
3232

3333
auto change_type{(dir == SCROLL_DIR::UP || dir == SCROLL_DIR::RIGHT)
34-
? util::ChangeType::Increase
35-
: util::ChangeType::Decrease};
34+
? util::ChangeType::Increase
35+
: util::ChangeType::Decrease};
3636

3737
backend->changeVolume(change_type, step, max_volume);
3838
return true;

src/modules/upower.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,6 @@ const Glib::ustring UPower::getText(const upDevice_output &upDevice_, const std:
459459

460460
bool UPower::queryTooltipCb(int x, int y, bool keyboard_tooltip,
461461
const Glib::RefPtr<Gtk::Tooltip> &tooltip) {
462-
463462
std::lock_guard<std::mutex> guard{mutex_};
464463

465464
// Clear content box

0 commit comments

Comments
 (0)