mirror of https://github.com/AxioDL/amuse.git
Remove unnecessary and RVO-detrimental moves
This commit is contained in:
parent
2521f37408
commit
7cb7ed73ea
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue