Commit a669a3a9 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

IAlbumTrack: Make trackNumber() const

parent cad96099
......@@ -46,7 +46,7 @@ class IAlbumTrack
virtual int64_t artistId() const = 0;
virtual GenrePtr genre() = 0;
virtual int64_t genreId() const = 0;
virtual unsigned int trackNumber() = 0;
virtual unsigned int trackNumber() const = 0;
virtual AlbumPtr album() = 0;
virtual int64_t albumId() const = 0;
virtual MediaPtr media() = 0;
......
......@@ -235,7 +235,7 @@ bool AlbumTrack::setGenre( std::shared_ptr<Genre> genre )
return true;
}
unsigned int AlbumTrack::trackNumber()
unsigned int AlbumTrack::trackNumber() const
{
return m_trackNumber;
}
......
......@@ -64,7 +64,7 @@ class AlbumTrack : public IAlbumTrack, public DatabaseHelpers<AlbumTrack, policy
virtual GenrePtr genre() override;
virtual int64_t genreId() const override;
bool setGenre( std::shared_ptr<Genre> genre );
virtual unsigned int trackNumber() override;
virtual unsigned int trackNumber() const override;
virtual unsigned int discNumber() const override;
virtual std::shared_ptr<IAlbum> album() override;
virtual int64_t albumId() const override;
......
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