Add explicit
This commit is contained in:
@@ -43,7 +43,7 @@ class SCollection : public QObject {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
SCollection(Application *app, QObject *parent);
|
||||
explicit SCollection(Application *app, QObject *parent);
|
||||
~SCollection();
|
||||
|
||||
static const char *kSongsTable;
|
||||
|
||||
@@ -45,7 +45,7 @@ class CollectionBackendInterface : public QObject {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
CollectionBackendInterface(QObject *parent = nullptr) : QObject(parent) {}
|
||||
explicit CollectionBackendInterface(QObject *parent = nullptr) : QObject(parent) {}
|
||||
virtual ~CollectionBackendInterface() {}
|
||||
|
||||
struct Album {
|
||||
|
||||
@@ -42,7 +42,7 @@ class CollectionDirectoryModel : public QStandardItemModel {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
CollectionDirectoryModel(CollectionBackend* backend, QObject *parent = nullptr);
|
||||
explicit CollectionDirectoryModel(CollectionBackend* backend, QObject *parent = nullptr);
|
||||
~CollectionDirectoryModel();
|
||||
|
||||
// To be called by GUIs
|
||||
|
||||
@@ -48,7 +48,7 @@ class CollectionFilterWidget : public QWidget {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
CollectionFilterWidget(QWidget *parent = nullptr);
|
||||
explicit CollectionFilterWidget(QWidget *parent = nullptr);
|
||||
~CollectionFilterWidget();
|
||||
|
||||
static const int kFilterDelay = 500; // msec
|
||||
|
||||
@@ -37,12 +37,12 @@ class CollectionItem : public SimpleTreeItem<CollectionItem> {
|
||||
Type_LoadingIndicator,
|
||||
};
|
||||
|
||||
CollectionItem(SimpleTreeModel<CollectionItem> *model)
|
||||
explicit CollectionItem(SimpleTreeModel<CollectionItem> *model)
|
||||
: SimpleTreeItem<CollectionItem>(Type_Root, model),
|
||||
container_level(-1),
|
||||
compilation_artist_node_(nullptr) {}
|
||||
|
||||
CollectionItem(Type type, CollectionItem *parent = nullptr)
|
||||
explicit CollectionItem(Type type, CollectionItem *parent = nullptr)
|
||||
: SimpleTreeItem<CollectionItem>(type, parent),
|
||||
container_level(-1),
|
||||
compilation_artist_node_(nullptr) {}
|
||||
|
||||
@@ -36,7 +36,7 @@ class CollectionItemDelegate : public QStyledItemDelegate {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
CollectionItemDelegate(QObject *parent);
|
||||
explicit CollectionItemDelegate(QObject *parent);
|
||||
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const;
|
||||
|
||||
public slots:
|
||||
|
||||
@@ -62,7 +62,7 @@ class CollectionModel : public SimpleTreeModel<CollectionItem> {
|
||||
Q_ENUMS(GroupBy)
|
||||
|
||||
public:
|
||||
CollectionModel(CollectionBackend *backend, Application *app, QObject *parent = nullptr);
|
||||
explicit CollectionModel(CollectionBackend *backend, Application *app, QObject *parent = nullptr);
|
||||
~CollectionModel();
|
||||
|
||||
static const char *kSavedGroupingsSettingsGroup;
|
||||
|
||||
@@ -33,8 +33,8 @@ class SqlRow;
|
||||
|
||||
class CollectionPlaylistItem : public PlaylistItem {
|
||||
public:
|
||||
CollectionPlaylistItem();
|
||||
CollectionPlaylistItem(const Song &song);
|
||||
explicit CollectionPlaylistItem();
|
||||
explicit CollectionPlaylistItem(const Song &song);
|
||||
|
||||
bool InitFromQuery(const SqlRow &query);
|
||||
void Reload();
|
||||
|
||||
@@ -72,7 +72,7 @@ struct QueryOptions {
|
||||
|
||||
class CollectionQuery {
|
||||
public:
|
||||
CollectionQuery(const QueryOptions &options = QueryOptions());
|
||||
explicit CollectionQuery(const QueryOptions &options = QueryOptions());
|
||||
|
||||
// Sets contents of SELECT clause on the query (list of columns to get).
|
||||
void SetColumnSpec(const QString &spec) { column_spec_ = spec; }
|
||||
|
||||
@@ -53,7 +53,7 @@ class CollectionView : public AutoExpandingTreeView {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
CollectionView(QWidget *parent = nullptr);
|
||||
explicit CollectionView(QWidget *parent = nullptr);
|
||||
~CollectionView();
|
||||
|
||||
// Returns Songs currently selected in the collection view.
|
||||
|
||||
@@ -34,7 +34,7 @@ class CollectionViewContainer : public QWidget {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
CollectionViewContainer(QWidget *parent = nullptr);
|
||||
explicit CollectionViewContainer(QWidget *parent = nullptr);
|
||||
~CollectionViewContainer();
|
||||
|
||||
CollectionFilterWidget *filter() const;
|
||||
|
||||
@@ -48,7 +48,7 @@ class CollectionWatcher : public QObject {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
CollectionWatcher(Song::Source source, QObject *parent = nullptr);
|
||||
explicit CollectionWatcher(Song::Source source, QObject *parent = nullptr);
|
||||
|
||||
void set_backend(CollectionBackend *backend) { backend_ = backend; }
|
||||
void set_task_manager(TaskManager *task_manager) { task_manager_ = task_manager; }
|
||||
@@ -64,7 +64,7 @@ class CollectionWatcher : public QObject {
|
||||
|
||||
void ExitAsync();
|
||||
|
||||
signals:
|
||||
signals:
|
||||
void NewOrUpdatedSongs(const SongList &songs);
|
||||
void SongsMTimeUpdated(const SongList &songs);
|
||||
void SongsDeleted(const SongList &songs);
|
||||
|
||||
@@ -40,7 +40,7 @@ class GroupByDialog : public QDialog {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
GroupByDialog(QWidget *parent = nullptr);
|
||||
explicit GroupByDialog(QWidget *parent = nullptr);
|
||||
~GroupByDialog();
|
||||
|
||||
public slots:
|
||||
|
||||
@@ -39,7 +39,7 @@ class SavedGroupingManager : public QDialog {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
SavedGroupingManager(QWidget *parent = nullptr);
|
||||
explicit SavedGroupingManager(QWidget *parent = nullptr);
|
||||
~SavedGroupingManager();
|
||||
|
||||
void UpdateModel();
|
||||
|
||||
Reference in New Issue
Block a user