Commit e94d5e48 authored by Matthieu Gallien's avatar Matthieu Gallien 🎵
Browse files

replace a lot of destructors by usage of = default (done with clang-tidy)

parent 8f66e39b
......@@ -45,8 +45,7 @@ AbstractFileListener::AbstractFileListener(QObject *parent)
}
AbstractFileListener::~AbstractFileListener()
{
}
= default;
DatabaseInterface *AbstractFileListener::databaseInterface() const
{
......
......@@ -47,8 +47,7 @@ AlbumModel::AlbumModel(QObject *parent) : QAbstractItemModel(parent), d(new Albu
}
AlbumModel::~AlbumModel()
{
}
= default;
int AlbumModel::rowCount(const QModelIndex &parent) const
{
......
......@@ -47,8 +47,7 @@ AllAlbumsModel::AllAlbumsModel(QObject *parent) : QAbstractItemModel(parent), d(
}
AllAlbumsModel::~AllAlbumsModel()
{
}
= default;
int AllAlbumsModel::albumCount() const
{
......
......@@ -47,8 +47,7 @@ AllArtistsModel::AllArtistsModel(QObject *parent) : QAbstractItemModel(parent),
}
AllArtistsModel::~AllArtistsModel()
{
}
= default;
int AllArtistsModel::rowCount(const QModelIndex &parent) const
{
......
......@@ -38,8 +38,7 @@ AllTracksModel::AllTracksModel(QObject *parent) : QAbstractItemModel(parent), d(
}
AllTracksModel::~AllTracksModel()
{
}
= default;
int AllTracksModel::rowCount(const QModelIndex &parent) const
{
......
......@@ -48,8 +48,7 @@ AudioWrapper::AudioWrapper(QObject *parent) : QObject(parent), d(new AudioWrappe
}
AudioWrapper::~AudioWrapper()
{
}
= default;
bool AudioWrapper::muted() const
{
......
......@@ -38,8 +38,7 @@ BalooListener::BalooListener(QObject *parent) : AbstractFileListener(parent), d(
}
BalooListener::~BalooListener()
{
}
= default;
#include "moc_baloolistener.cpp"
......@@ -40,8 +40,7 @@ FileListener::FileListener(QObject *parent) : AbstractFileListener(parent), d(ne
}
FileListener::~FileListener()
{
}
= default;
const LocalFileListing& FileListener::localFileIndexer() const
{
......
......@@ -46,8 +46,7 @@ MediaPlayList::MediaPlayList(QObject *parent) : QAbstractListModel(parent), d(ne
}
MediaPlayList::~MediaPlayList()
{
}
= default;
int MediaPlayList::rowCount(const QModelIndex &parent) const
{
......
......@@ -89,8 +89,7 @@ MusicAlbum& MusicAlbum::operator=(const MusicAlbum &other)
}
MusicAlbum::~MusicAlbum()
{
}
= default;
void MusicAlbum::setValid(bool value)
{
......
......@@ -70,8 +70,7 @@ MusicArtist &MusicArtist::operator=(const MusicArtist &other)
}
MusicArtist::~MusicArtist()
{
}
= default;
void MusicArtist::setValid(bool value)
{
......
......@@ -111,8 +111,7 @@ MusicAudioTrack::MusicAudioTrack(const MusicAudioTrack &other) : d(new MusicAudi
}
MusicAudioTrack::~MusicAudioTrack()
{
}
= default;
MusicAudioTrack& MusicAudioTrack::operator=(MusicAudioTrack &&other)
{
......
......@@ -145,8 +145,7 @@ MusicListenersManager::MusicListenersManager(QObject *parent)
}
MusicListenersManager::~MusicListenersManager()
{
}
= default;
DatabaseInterface *MusicListenersManager::viewDatabase() const
{
......
......@@ -45,8 +45,7 @@ TracksListener::TracksListener(DatabaseInterface *database, QObject *parent) : Q
}
TracksListener::~TracksListener()
{
}
= default;
void TracksListener::tracksAdded(const QList<MusicAudioTrack> &allTracks)
{
......
......@@ -69,8 +69,7 @@ DidlParser::DidlParser(QObject *parent) : QObject(parent), d(new DidlParserPriva
}
DidlParser::~DidlParser()
{
}
= default;
const QString &DidlParser::browseFlag() const
{
......
......@@ -75,8 +75,7 @@ UpnpContentDirectoryModel::UpnpContentDirectoryModel(QObject *parent)
}
UpnpContentDirectoryModel::~UpnpContentDirectoryModel()
{
}
= default;
int UpnpContentDirectoryModel::rowCount(const QModelIndex &parent) const
{
......
......@@ -45,8 +45,7 @@ UpnpControlConnectionManager::UpnpControlConnectionManager(QObject *parent) : Up
}
UpnpControlConnectionManager::~UpnpControlConnectionManager()
{
}
= default;
const QString &UpnpControlConnectionManager::sourceProtocolInfo() const
{
......
......@@ -47,8 +47,7 @@ UpnpControlContentDirectory::UpnpControlContentDirectory(QObject *parent) : Upnp
}
UpnpControlContentDirectory::~UpnpControlContentDirectory()
{
}
= default;
const QString &UpnpControlContentDirectory::searchCapabilities() const
{
......
......@@ -35,8 +35,7 @@ UpnpControlMediaServer::UpnpControlMediaServer(QObject *parent) : UpnpControlAbs
}
UpnpControlMediaServer::~UpnpControlMediaServer()
{
}
= default;
bool UpnpControlMediaServer::hasAVTransport() const
{
......
......@@ -72,8 +72,7 @@ UpnpDiscoverAllMusic::UpnpDiscoverAllMusic(QObject *parent) : QObject(parent), d
}
UpnpDiscoverAllMusic::~UpnpDiscoverAllMusic()
{
}
= default;
QString UpnpDiscoverAllMusic::deviceId() const
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment