Commit 6427d612 authored by mattijs's avatar mattijs
Browse files

start with empty list instead of copy

parent 6d324c0f
......@@ -73,7 +73,7 @@ void inplaceReorder(const UList<label>& oldToNew, ListType&);
template<class Container>
void inplaceMapValue(const UList<label>& oldToNew, Container&);
//- Recreate with mapped keys. Remove elements with negative key.
//- Recreate with mapped keys. Do not map elements with negative key.
template<class Container>
void inplaceMapKey(const UList<label>& oldToNew, Container&);
......
......@@ -147,7 +147,7 @@ void Foam::inplaceMapKey
Container& lst
)
{
Container newLst(lst);
Container newLst(lst.size());
for
(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment