Skip to content

Commit 15be904

Browse files
committed
UPower happy clang-tidy
Signed-off-by: Viktar Lukashonak <myxabeer@gmail.com>
1 parent 49f95ce commit 15be904

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Diff for: include/modules/upower.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class UPower final : public AIconLabel {
5555
void resetDevices();
5656
void setDisplayDevice();
5757
const Glib::ustring getText(const upDevice_output &upDevice_, const std::string &format);
58-
bool queryTooltip_cb(int, int, bool, const Glib::RefPtr<Gtk::Tooltip> &);
58+
bool queryTooltipCb(int, int, bool, const Glib::RefPtr<Gtk::Tooltip> &);
5959

6060
// DBUS variables
6161
guint watcherID_;

Diff for: src/modules/upower.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ UPower::UPower(const std::string &id, const Json::Value &config)
6969

7070
// Subscribe tooltip query events
7171
box_.set_has_tooltip();
72-
box_.signal_query_tooltip().connect(sigc::mem_fun(*this, &UPower::queryTooltip_cb), false);
72+
box_.signal_query_tooltip().connect(sigc::mem_fun(*this, &UPower::queryTooltipCb), false);
7373

7474
resetDevices();
7575
setDisplayDevice();
@@ -424,8 +424,8 @@ const Glib::ustring UPower::getText(const upDevice_output &upDevice_, const std:
424424
return ret;
425425
}
426426

427-
bool UPower::queryTooltip_cb(int x, int y, bool keyboard_tooltip,
428-
const Glib::RefPtr<Gtk::Tooltip> &tooltip) {
427+
bool UPower::queryTooltipCb(int x, int y, bool keyboard_tooltip,
428+
const Glib::RefPtr<Gtk::Tooltip> &tooltip) {
429429
std::lock_guard<std::mutex> guard{mutex_};
430430

431431
// Clear content box

0 commit comments

Comments
 (0)