Skip to content
Snippets Groups Projects
Commit 2574636e authored by Christoph Grüninger's avatar Christoph Grüninger
Browse files

Remove std::move from hierachic seach

Indicated by GCC 9's -Wpessimizing-move
parent 797a1846
No related branches found
No related tags found
1 merge request!341Remove std::move from hierachic seach
Pipeline #18810 passed
......@@ -90,7 +90,7 @@ namespace Dune
{
// return if we found the leaf, else search through the child entites
if( indexSet_.contains( child ) )
return std::move( child );
return child;
else
return hFindEntity( child, global );
}
......@@ -162,7 +162,7 @@ namespace Dune
// return if we found the leaf, else search through the child entites
if( indexSet_.contains( entity ) )
return std::move( entity );
return entity;
else
return hFindEntity( entity, global );
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment