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

Thumbnail: Initialize the members from an initialization list

parent b9c45288
......@@ -38,10 +38,10 @@ const std::string Thumbnail::EmptyMrl;
Thumbnail::Thumbnail( MediaLibraryPtr ml, sqlite::Row& row )
: m_ml( ml )
, m_id( row.extract<decltype(m_id)>() )
, m_mrl( row.extract<decltype(m_mrl)>() )
, m_origin( row.extract<decltype(m_origin)>() )
{
row >> m_id
>> m_mrl
>> m_origin;
}
Thumbnail::Thumbnail( MediaLibraryPtr ml, std::string mrl, Thumbnail::Origin origin )
......
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