Skip to content
Snippets Groups Projects
Commit 6f10b0ec authored by Jö Fahlke's avatar Jö Fahlke
Browse files

[!341] Remove std::move from hierachic seach

Merge branch 'fix/gcc-9-warnings' into 'master'

ref:core/dune-grid Indicated by GCC 9's -Wpessimizing-move

See merge request [!341]

  [!341]: gitlab.dune-project.org/core/dune-grid/merge_requests/341
parents a8052ebe 2574636e
No related branches found
No related tags found
1 merge request!341Remove std::move from hierachic seach
Pipeline #18820 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.
Please register or to comment