diff options
author | Uwe Klotz <uklotz@mixxx.org> | 2019-12-10 12:44:03 +0100 |
---|---|---|
committer | Uwe Klotz <uklotz@mixxx.org> | 2019-12-10 17:13:41 +0100 |
commit | a14c1dd3bc266489c7a78af36a4f1d4557eeecd4 (patch) | |
tree | f3dc7825f9bd0b30a1a346413bb51f434d74392d /src | |
parent | 4d3d17d64a97ae3f8c28927af609a610bc3e79d4 (diff) |
Fix function signatures
Diffstat (limited to 'src')
-rw-r--r-- | src/library/dao/playlistdao.cpp | 8 | ||||
-rw-r--r-- | src/library/dao/playlistdao.h | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/src/library/dao/playlistdao.cpp b/src/library/dao/playlistdao.cpp index e05a524420..04a8be7ad4 100644 --- a/src/library/dao/playlistdao.cpp +++ b/src/library/dao/playlistdao.cpp @@ -243,7 +243,7 @@ bool PlaylistDAO::isPlaylistLocked(const int playlistId) const { return false; } -bool PlaylistDAO::removeTracksFromPlaylist(const int playlistId, const int startIndex) { +bool PlaylistDAO::removeTracksFromPlaylist(int playlistId, int startIndex) { // Retain the first track if it is loaded in a deck ScopedTransaction transaction(m_database); QSqlQuery query(m_database); @@ -415,7 +415,7 @@ void PlaylistDAO::removeHiddenTracks(const int playlistId) { } -void PlaylistDAO::removeTrackFromPlaylist(const int playlistId, const TrackId& trackId) { +void PlaylistDAO::removeTrackFromPlaylist(int playlistId, TrackId trackId) { ScopedTransaction transaction(m_database); QSqlQuery query(m_database); @@ -441,7 +441,7 @@ void PlaylistDAO::removeTrackFromPlaylist(const int playlistId, const TrackId& t } -void PlaylistDAO::removeTrackFromPlaylist(const int playlistId, const int position) { +void PlaylistDAO::removeTrackFromPlaylist(int playlistId, int position) { // qDebug() << "PlaylistDAO::removeTrackFromPlaylist" // << QThread::currentThread() << m_database.connectionName(); ScopedTransaction transaction(m_database); @@ -450,7 +450,7 @@ void PlaylistDAO::removeTrackFromPlaylist(const int playlistId, const int positi emit(changed(playlistId)); } -void PlaylistDAO::removeTracksFromPlaylist(const int playlistId, QList<int>& positions) { +void PlaylistDAO::removeTracksFromPlaylist(int playlistId, QList<int> positions) { // get positions in reversed order qSort(positions.begin(), positions.end(), qGreater<int>()); diff --git a/src/library/dao/playlistdao.h b/src/library/dao/playlistdao.h index 5f9af679a7..eb478050df 100644 --- a/src/library/dao/playlistdao.h +++ b/src/library/dao/playlistdao.h @@ -91,9 +91,9 @@ class PlaylistDAO : public QObject, public virtual DAO { // removes all hidden and purged Tracks from the playlist void removeHiddenTracks(const int playlistId); // Remove a track from a playlist - void removeTrackFromPlaylist(const int playlistId, const TrackId& trackId); - void removeTrackFromPlaylist(const int playlistId, const int position); - void removeTracksFromPlaylist(const int playlistId, QList<int>& positions); + void removeTrackFromPlaylist(int playlistId, TrackId trackId); + void removeTrackFromPlaylist(int playlistId, int position); + void removeTracksFromPlaylist(int playlistId, QList<int> positions); // Insert a track into a specific position in a playlist bool insertTrackIntoPlaylist(TrackId trackId, int playlistId, int position); // Inserts a list of tracks into playlist @@ -131,7 +131,7 @@ class PlaylistDAO : public QObject, public virtual DAO { void lockChanged(int playlistId); private: - bool removeTracksFromPlaylist(const int playlistId, const int startIndex); + bool removeTracksFromPlaylist(int playlistId, int startIndex); void removeTracksFromPlaylistInner(int playlistId, int position); void searchForDuplicateTrack(const int fromPosition, const int toPosition, |