Unverified Commit a6bd395e authored by Alexandre Fernandez's avatar Alexandre Fernandez
Browse files

FsDiscoverer: Avoid unnecessary copy of shared_ptr in constructor

parent cb8a4037
......@@ -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 )
{
}
......
Supports Markdown
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