Commit e5579874 authored by Hugo Beauzee-Luyssen's avatar Hugo Beauzee-Luyssen

Don't use dynamic cast if they are useless.

And when they are, please, check the return value...
parent b3a50081
......@@ -68,7 +68,7 @@ Library::clip( const QUuid& uuid )
{
Media* media = m_medias.value( mediaUuid );
if ( media != NULL && media->clips()->contains( uuid ) )
return dynamic_cast<Clip*>( getElementByUuid( *media->clips(), uuid ) );
return getElementByUuid( *media->clips(), uuid );
}
return NULL;
}
......
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