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

Playlist: Make creation_date immutable

parent 71edffe0
......@@ -41,12 +41,12 @@ int64_t Playlist::* const Playlist::Table::PrimaryKey = &Playlist::m_id;
Playlist::Playlist( MediaLibraryPtr ml, sqlite::Row& row )
: m_ml( ml )
, m_id( row.extract<decltype(m_id)>() )
, m_name( row.extract<decltype(m_name)>() )
, m_fileId( row.extract<decltype(m_fileId)>() )
, m_creationDate( row.extract<decltype(m_creationDate)>() )
, m_artworkMrl( row.extract<decltype(m_artworkMrl)>() )
{
row >> m_id
>> m_name
>> m_fileId
>> m_creationDate
>> m_artworkMrl;
}
Playlist::Playlist( MediaLibraryPtr ml, const std::string& name )
......
......@@ -94,7 +94,7 @@ private:
int64_t m_id;
std::string m_name;
int64_t m_fileId;
unsigned int m_creationDate;
const unsigned int m_creationDate;
std::string m_artworkMrl;
friend Playlist::Table;
......
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