Commit 65e8b27f authored by Pierre Lamot's avatar Pierre Lamot Committed by Hugo Beauzée-Luyssen

IMedia: type accessor should be const

Signed-off-by: Hugo Beauzée-Luyssen's avatarHugo Beauzée-Luyssen <hugo@beauzee.fr>
parent ba919d59
......@@ -98,7 +98,7 @@ class IMedia
virtual ~IMedia() = default;
virtual int64_t id() const = 0;
virtual Type type() = 0;
virtual Type type() const = 0;
virtual SubType subType() const = 0;
virtual const std::string& title() const = 0;
virtual bool setTitle( const std::string& title ) = 0;
......
......@@ -523,7 +523,7 @@ int64_t Media::id() const
return m_id;
}
IMedia::Type Media::type()
IMedia::Type Media::type() const
{
return m_type;
}
......
......@@ -90,7 +90,7 @@ class Media : public IMedia, public DatabaseHelpers<Media, policy::MediaTable>
static void createTriggers( sqlite::Connection* connection );
virtual int64_t id() const override;
virtual Type type() override;
virtual Type type() const override;
virtual SubType subType() const override;
void setType( Type type );
virtual const std::string& title() 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