style: Remove superfluous 'const' on getInfo()

was here before, but is an easy fix for a clang-tidy warning
This commit is contained in:
Kiri 2024-04-13 13:19:54 +02:00
parent da47c94480
commit 3d54a6002d
No known key found for this signature in database
GPG Key ID: F1BEE619CFF29825
2 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ class Battery : public ALabel {
void refreshBatteries();
void worker();
const std::string getAdapterStatus(uint8_t capacity) const;
const std::tuple<uint8_t, float, std::string, float, uint16_t, float> getInfos();
std::tuple<uint8_t, float, std::string, float, uint16_t, float> getInfos();
const std::string formatTimeRemaining(float hoursRemaining);
void setBarClass(std::string&);

View File

@ -181,7 +181,7 @@ static bool status_gt(const std::string& a, const std::string& b) {
return false;
}
const std::tuple<uint8_t, float, std::string, float, uint16_t, float> waybar::modules::Battery::getInfos() {
std::tuple<uint8_t, float, std::string, float, uint16_t, float> waybar::modules::Battery::getInfos() {
std::lock_guard<std::mutex> guard(battery_list_mutex_);
try {