Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Alexandre Fernandez
medialibrary
Commits
a6bd395e
Unverified
Commit
a6bd395e
authored
Sep 19, 2017
by
Alexandre Fernandez
Browse files
FsDiscoverer: Avoid unnecessary copy of shared_ptr in constructor
parent
cb8a4037
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/discoverer/FsDiscoverer.cpp
View file @
a6bd395e
...
...
@@ -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
)
{
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment