From 7cb7ed73ea2b91227b55fae206ffbc86a82a4844 Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Sun, 2 Oct 2016 18:38:08 -1000 Subject: [PATCH] Remove unnecessary and RVO-detrimental moves --- lib/DirectoryEnumerator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/DirectoryEnumerator.cpp b/lib/DirectoryEnumerator.cpp index 40f5ad7..8a38ecc 100644 --- a/lib/DirectoryEnumerator.cpp +++ b/lib/DirectoryEnumerator.cpp @@ -186,7 +186,7 @@ DirectoryEnumerator::DirectoryEnumerator(const SystemChar* path, Mode mode, bool else continue; - m_entries.push_back(std::move(Entry(std::move(fp), d->d_name, sz, isDir))); + m_entries.push_back(Entry(std::move(fp), d->d_name, sz, isDir)); } break; case Mode::DirsThenFilesSorted: