Commit 4bd52bf2 authored by Alexandre Fernandez's avatar Alexandre Fernandez Committed by Hugo Beauzée-Luyssen

FsDiscoverer: Avoid unnecessary copy of shared_ptr when iterating

Signed-off-by: default avatarHugo Beauzée-Luyssen <>
parent b45426dc
......@@ -241,7 +241,7 @@ void FsDiscoverer::checkFolder( std::shared_ptr<fs::IDirectory> currentFolderFs,
subFoldersInDB.erase( it );
// Now all folders we had in DB but haven't seen from the FS must have been deleted.
for ( auto f : subFoldersInDB )
for ( const auto& f : subFoldersInDB )
LOG_INFO( "Folder ", f->mrl(), " not found in FS, deleting it" );
m_ml->deleteFolder( *f );
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment