mirror of
https://git.outfoxxed.me/quickshell/quickshell.git
synced 2026-02-23 03:33:57 +11:00
all: fix gcc warnings and lints
This commit is contained in:
parent
9bb2c043ae
commit
c5c438f1cd
11 changed files with 42 additions and 16 deletions
|
|
@ -73,7 +73,7 @@ UPowerDevice::UPowerDevice(QObject* parent): QObject(parent) {
|
|||
return this->bType == UPowerDeviceType::Battery && this->bPowerSupply;
|
||||
});
|
||||
|
||||
this->bHealthSupported.setBinding([this]() { return this->bHealthPercentage != 0; });
|
||||
this->bHealthSupported.setBinding([this]() { return this->bHealthPercentage.value() != 0; });
|
||||
}
|
||||
|
||||
void UPowerDevice::init(const QString& path) {
|
||||
|
|
|
|||
|
|
@ -164,6 +164,7 @@ QString DBusDataTransform<PowerProfile::Enum>::toWire(Data data) {
|
|||
case PowerProfile::PowerSaver: return QStringLiteral("power-saver");
|
||||
case PowerProfile::Balanced: return QStringLiteral("balanced");
|
||||
case PowerProfile::Performance: return QStringLiteral("performance");
|
||||
default: qFatal() << "Attempted to convert invalid power profile" << data << "to wire format.";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue