From: Wolfgang Bangerth Date: Tue, 27 Oct 2020 20:58:17 +0000 (-0600) Subject: Micro-optimization: Use move semantics in one place. X-Git-Tag: v9.3.0-rc1~965^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=909d86cd6b7d25a7e62396801891af830bcb5bc9;p=dealii.git Micro-optimization: Use move semantics in one place. This is the last use of the variable in this location -- might as well move instead of copy it. --- diff --git a/source/particles/particle_handler.cc b/source/particles/particle_handler.cc index 7261572fa3..83cfac4a13 100644 --- a/source/particles/particle_handler.cc +++ b/source/particles/particle_handler.cc @@ -692,7 +692,7 @@ namespace Particles } particles.emplace(local_cells_containing_particles[i_cell], - particle); + std::move(particle)); } }