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

File: Fix build when std::weak_ptr lacks operator!=(std::nullptr_t)

parent 0be3da50
......@@ -165,8 +165,9 @@ std::shared_ptr<Media> File::media() const
auto lock = m_media.lock();
if ( m_media.isCached() == false )
{
m_media = Media::fetch( m_ml, m_mediaId );
assert( isDeleted() == true || m_media.get() != nullptr );
auto media = Media::fetch( m_ml, m_mediaId );
assert( isDeleted() == true || media != nullptr );
m_media = media;
}
return m_media.get().lock();
}
......
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