Commit 500faa0f authored by Alexandre Fernandez's avatar Alexandre Fernandez Committed by Hugo Beauzée-Luyssen

FsDiscoverer: Avoid unnecessary copy of shared_ptr in constructor

Signed-off-by: default avatarHugo Beauzée-Luyssen <hugo@beauzee.fr>
parent 4bd52bf2
......@@ -28,6 +28,7 @@
#include <algorithm>
#include <queue>
#include <utility>
#include "factory/FileSystemFactory.h"
#include "filesystem/IDevice.h"
......@@ -58,7 +59,7 @@ namespace medialibrary
FsDiscoverer::FsDiscoverer( std::shared_ptr<factory::IFileSystem> fsFactory, MediaLibrary* ml, IMediaLibraryCb* cb )
: m_ml( ml )
, m_fsFactory( fsFactory )
, m_fsFactory( std::move( fsFactory ))
, m_cb( cb )
{
}
......
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