Commit 71eb8d40 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

Media: make title() a const method

parent 967db52f
......@@ -44,7 +44,7 @@ class IMedia
virtual unsigned int id() const = 0;
virtual Type type() = 0;
virtual const std::string& title() = 0;
virtual const std::string& title() const = 0;
virtual AlbumTrackPtr albumTrack() const = 0;
/**
* @brief duration Returns the media duration in ms
......
......@@ -318,7 +318,7 @@ void Media::setType( Type type )
m_changed = true;
}
const std::string &Media::title()
const std::string &Media::title() const
{
return m_title;
}
......
......@@ -73,7 +73,7 @@ class Media : public IMedia, public DatabaseHelpers<Media, policy::MediaTable>
virtual unsigned int id() const override;
virtual Type type() override;
void setType( Type type );
virtual const std::string& title() override;
virtual const std::string& title() const override;
void setTitle( const std::string& title );
virtual AlbumTrackPtr albumTrack() const override;
void setAlbumTrack( AlbumTrackPtr albumTrack );
......
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