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

MediaLibrary: Avoid a useless move

parent 40f6b358
......@@ -726,7 +726,7 @@ void MediaLibrary::startDiscoverer()
m_discovererWorker.reset( new DiscovererWorker( this ) );
for ( const auto& fsFactory : m_fsFactories )
{
auto probePtr = std::unique_ptr<prober::CrawlerProbe>( new prober::CrawlerProbe{} );
std::unique_ptr<prober::CrawlerProbe> probePtr( new prober::CrawlerProbe{} );
m_discovererWorker->addDiscoverer( std::unique_ptr<IDiscoverer>( new FsDiscoverer( fsFactory, this, m_callback,
std::move ( probePtr ) ) ) );
}
......
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