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

Show: Make title immutable

parent b697fcd3
......@@ -42,13 +42,13 @@ int64_t Show::* const Show::Table::PrimaryKey = &Show::m_id;
Show::Show( MediaLibraryPtr ml, sqlite::Row& row )
: m_ml( ml )
, m_id( row.extract<decltype(m_id)>() )
, m_title( row.extract<decltype(m_title)>() )
, m_releaseDate( row.extract<decltype(m_releaseDate)>() )
, m_shortSummary( row.extract<decltype(m_shortSummary)>() )
, m_artworkMrl( row.extract<decltype(m_artworkMrl)>() )
, m_tvdbId( row.extract<decltype(m_tvdbId)>() )
{
row >> m_id
>> m_title
>> m_releaseDate
>> m_shortSummary
>> m_artworkMrl
>> m_tvdbId;
}
Show::Show( MediaLibraryPtr ml, const std::string& name )
......
......@@ -80,7 +80,7 @@ class Show : public IShow, public DatabaseHelpers<Show>
MediaLibraryPtr m_ml;
int64_t m_id;
std::string m_title;
const std::string m_title;
time_t m_releaseDate;
std::string m_shortSummary;
std::string m_artworkMrl;
......
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