From: Wolfgang Bangerth Date: Sat, 1 Jul 2023 16:46:54 +0000 (-0600) Subject: Use std::move instead of std::swap. X-Git-Tag: relicensing~765^2~2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=64e656039f8303aefdd59274f56054d148717d4b;p=dealii.git Use std::move instead of std::swap. --- diff --git a/include/deal.II/lac/affine_constraints.templates.h b/include/deal.II/lac/affine_constraints.templates.h index d951ddb6f4..14266625cb 100644 --- a/include/deal.II/lac/affine_constraints.templates.h +++ b/include/deal.II/lac/affine_constraints.templates.h @@ -648,7 +648,7 @@ AffineConstraints::close() new_lines[calculate_line_index(line.index)] = counter; ++counter; } - std::swap(lines_cache, new_lines); + lines_cache = std::move(new_lines); } // in debug mode: check whether we really set the pointers correctly.