Make empty and one-line functions really one-liners
This commit is contained in:
parent
d2668194ce
commit
2a9db678b0
2 changed files with 4 additions and 19 deletions
|
@ -32,10 +32,7 @@ Battery::Battery(QObject* parent) : QObject(parent)
|
|||
this->updateData();
|
||||
}
|
||||
|
||||
Battery::~Battery()
|
||||
{
|
||||
|
||||
}
|
||||
Battery::~Battery() { }
|
||||
|
||||
void Battery::updateData()
|
||||
{
|
||||
|
@ -57,12 +54,6 @@ void Battery::updateData()
|
|||
}
|
||||
}
|
||||
|
||||
int Battery::getCharge()
|
||||
{
|
||||
return currentCharge;
|
||||
}
|
||||
int Battery::getCharge(){ return currentCharge; }
|
||||
|
||||
bool Battery::getCharging()
|
||||
{
|
||||
return isCharging;
|
||||
}
|
||||
bool Battery::getCharging() { return isCharging; }
|
||||
|
|
|
@ -32,13 +32,7 @@ Settings::Settings(QObject *parent) : QObject(parent)
|
|||
lowAlertFile = "/usr/share/sounds/jolla-ambient/stereo/general_warning.wav";
|
||||
highAlertFile = "/usr/share/sounds/jolla-ambient/stereo/positive_confirmation.wav";
|
||||
|
||||
load();
|
||||
}
|
||||
|
||||
Settings::~Settings()
|
||||
{
|
||||
save();
|
||||
}
|
||||
Settings::~Settings() { save(); }
|
||||
|
||||
void Settings::load()
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue