diff --git a/components/files/collections.cpp b/components/files/collections.cpp index 6f8935d322..0db24f2ab8 100644 --- a/components/files/collections.cpp +++ b/components/files/collections.cpp @@ -25,7 +25,7 @@ namespace Files if (iter==mCollections.end()) { std::pair result = - mCollections.insert(std::make_pair(ext, MultiDirCollection(mDirectories, ext, mFoldCase))); + mCollections.emplace(ext, MultiDirCollection(mDirectories, ext, mFoldCase)); iter = result.first; }