Use default

This commit is contained in:
Jonas Kvinge
2021-06-21 15:38:58 +02:00
parent 1abbd5ecbc
commit 589bdf5dcd
19 changed files with 22 additions and 23 deletions

View File

@@ -23,9 +23,9 @@
#include "settingsprovider.h"
SettingsProvider::SettingsProvider() {}
SettingsProvider::SettingsProvider() = default;
DefaultSettingsProvider::DefaultSettingsProvider() {}
DefaultSettingsProvider::DefaultSettingsProvider() = default;
void DefaultSettingsProvider::set_group(const char *group) {
while (!backend_.group().isEmpty()) backend_.endGroup();

View File

@@ -275,8 +275,8 @@ Song::Private::Private(Song::Source source)
{}
Song::Song(Song::Source source) : d(new Private(source)) {}
Song::Song(const Song &other) : d(other.d) {}
Song::~Song() {}
Song::Song(const Song &other) = default;
Song::~Song() = default;
Song &Song::operator=(const Song &other) {
d = other.d;