From 909d86cd6b7d25a7e62396801891af830bcb5bc9 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Tue, 27 Oct 2020 14:58:17 -0600 Subject: [PATCH] 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. --- source/particles/particle_handler.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); } } -- 2.39.5