Make empty and one-line functions really one-liners

This commit is contained in:
Matti Viljanen 2019-01-06 16:37:02 +02:00
parent d2668194ce
commit 2a9db678b0
No known key found for this signature in database
GPG key ID: CF32A1495158F888
2 changed files with 4 additions and 19 deletions

View file

@ -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; }

View file

@ -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()
{