diff options
author | xerus2000 <27jf@pm.me> | 2020-05-19 13:03:37 +0200 |
---|---|---|
committer | xerus2000 <27jf@pm.me> | 2020-05-19 17:26:59 +0200 |
commit | 1afd4babd93416d223be76fe113ecfae01553111 (patch) | |
tree | 7f0be36e79d1ede668bbdbff9a26003e5536f701 | |
parent | 37290c6e983e1bb35384019f34408fb3506f470d (diff) |
Reformat constructors
-rw-r--r-- | src/library/basesqltablemodel.cpp | 13 | ||||
-rw-r--r-- | src/library/basetracktablemodel.cpp | 5 | ||||
-rw-r--r-- | src/library/crate/cratetablemodel.cpp | 9 | ||||
-rw-r--r-- | src/library/playlisttablemodel.cpp | 11 | ||||
-rw-r--r-- | src/library/tracksettablemodel.cpp | 5 |
5 files changed, 25 insertions, 18 deletions
diff --git a/src/library/basesqltablemodel.cpp b/src/library/basesqltablemodel.cpp index eb921d1ab1..db94bbae61 100644 --- a/src/library/basesqltablemodel.cpp +++ b/src/library/basesqltablemodel.cpp @@ -39,12 +39,15 @@ const QString kEmptyString = QStringLiteral(""); } // anonymous namespace -BaseSqlTableModel::BaseSqlTableModel(QObject* parent, TrackCollectionManager* pTrackCollectionManager, const char* settingsNamespace) +BaseSqlTableModel::BaseSqlTableModel( + QObject* parent, + TrackCollectionManager* pTrackCollectionManager, + const char* settingsNamespace) : BaseTrackTableModel(parent, pTrackCollectionManager, settingsNamespace), - m_pTrackCollectionManager(pTrackCollectionManager), - m_database(pTrackCollectionManager->internalCollection()->database()), - m_bInitialized(false), - m_currentSearch(kEmptyString) { + m_pTrackCollectionManager(pTrackCollectionManager), + m_database(pTrackCollectionManager->internalCollection()->database()), + m_bInitialized(false), + m_currentSearch(kEmptyString) { } BaseSqlTableModel::~BaseSqlTableModel() { diff --git a/src/library/basetracktablemodel.cpp b/src/library/basetracktablemodel.cpp index 4121a436a6..b3d401fff6 100644 --- a/src/library/basetracktablemodel.cpp +++ b/src/library/basetracktablemodel.cpp @@ -88,7 +88,10 @@ QStringList BaseTrackTableModel::defaultTableColumns() { return kDefaultTableColumns; } -BaseTrackTableModel::BaseTrackTableModel(QObject* parent, TrackCollectionManager* pTrackCollectionManager, const char* settingsNamespace) +BaseTrackTableModel::BaseTrackTableModel( + QObject* parent, + TrackCollectionManager* pTrackCollectionManager, + const char* settingsNamespace) : QAbstractTableModel(parent), TrackModel(cloneDatabase(pTrackCollectionManager), settingsNamespace), m_pTrackCollectionManager(pTrackCollectionManager), diff --git a/src/library/crate/cratetablemodel.cpp b/src/library/crate/cratetablemodel.cpp index e47d4743cd..588a453dd2 100644 --- a/src/library/crate/cratetablemodel.cpp +++ b/src/library/crate/cratetablemodel.cpp @@ -6,11 +6,10 @@ #include "mixer/playermanager.h" #include "util/db/fwdsqlquery.h" -#include <QtDebug> - -CrateTableModel::CrateTableModel(QObject* pParent, TrackCollectionManager* pTrackCollectionManager) - : TrackSetTableModel(pParent, pTrackCollectionManager, - "mixxx.db.model.crate") { +CrateTableModel::CrateTableModel( + QObject* pParent, + TrackCollectionManager* pTrackCollectionManager) + : TrackSetTableModel(pParent, pTrackCollectionManager, "mixxx.db.model.crate") { } void CrateTableModel::selectCrate(CrateId crateId) { diff --git a/src/library/playlisttablemodel.cpp b/src/library/playlisttablemodel.cpp index e56e782cf0..5c1e477ef9 100644 --- a/src/library/playlisttablemodel.cpp +++ b/src/library/playlisttablemodel.cpp @@ -6,12 +6,11 @@ #include "library/trackcollection.h" #include "library/trackcollectionmanager.h" -#include "mixer/playermanager.h" - -PlaylistTableModel::PlaylistTableModel(QObject* parent, - TrackCollectionManager* pTrackCollectionManager, - const char* settingsNamespace, - bool keepDeletedTracks) +PlaylistTableModel::PlaylistTableModel( + QObject* parent, + TrackCollectionManager* pTrackCollectionManager, + const char* settingsNamespace, + bool keepDeletedTracks) : TrackSetTableModel(parent, pTrackCollectionManager, settingsNamespace), m_iPlaylistId(-1), m_keepDeletedTracks(keepDeletedTracks) { diff --git a/src/library/tracksettablemodel.cpp b/src/library/tracksettablemodel.cpp index 6e6aefd8e3..cbed3978ac 100644 --- a/src/library/tracksettablemodel.cpp +++ b/src/library/tracksettablemodel.cpp @@ -2,7 +2,10 @@ #include "mixer/playermanager.h" -TrackSetTableModel::TrackSetTableModel(QObject* parent, TrackCollectionManager* pTrackCollectionManager, const char* settingsNamespace) +TrackSetTableModel::TrackSetTableModel( + QObject* parent, + TrackCollectionManager* pTrackCollectionManager, + const char* settingsNamespace) : BaseSqlTableModel(parent, pTrackCollectionManager, settingsNamespace) { } |