Add const/references to all signal parameters
This commit is contained in:
@@ -85,7 +85,7 @@ class PlaylistGenerator : public QObject, public std::enable_shared_from_this<Pl
|
||||
virtual int GetDynamicFuture() { return kDefaultDynamicFuture; }
|
||||
|
||||
signals:
|
||||
void Error(QString message);
|
||||
void Error(const QString &message);
|
||||
|
||||
protected:
|
||||
CollectionBackend *backend_;
|
||||
|
||||
@@ -47,8 +47,8 @@ class PlaylistGeneratorInserter : public QObject {
|
||||
static PlaylistItemPtrList Generate(PlaylistGeneratorPtr generator, const int dynamic_count);
|
||||
|
||||
signals:
|
||||
void Error(QString message);
|
||||
void PlayRequested(QModelIndex idx, Playlist::AutoScroll autoscroll);
|
||||
void Error(const QString &message);
|
||||
void PlayRequested(const QModelIndex idx, const Playlist::AutoScroll autoscroll);
|
||||
|
||||
private slots:
|
||||
void Finished();
|
||||
|
||||
@@ -40,7 +40,7 @@ class SmartPlaylistsView : public QListView {
|
||||
|
||||
signals:
|
||||
void ItemsSelectedChanged();
|
||||
void RightClicked(QPoint global_pos, QModelIndex idx);
|
||||
void RightClicked(const QPoint global_pos, const QModelIndex idx);
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user