]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use std::move instead of std::swap.
authorWolfgang Bangerth <bangerth@colostate.edu>
Sat, 1 Jul 2023 16:46:54 +0000 (10:46 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Mon, 3 Jul 2023 19:02:15 +0000 (13:02 -0600)
include/deal.II/lac/affine_constraints.templates.h

index d951ddb6f42d7b95cd773881448fc3868c163b0a..14266625cb6f3fd457e6389e802c5c569269fc90 100644 (file)
@@ -648,7 +648,7 @@ AffineConstraints<number>::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.

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.