]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix warning in step-70 10227/head
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Fri, 15 May 2020 10:32:16 +0000 (12:32 +0200)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Fri, 15 May 2020 10:32:16 +0000 (12:32 +0200)
examples/step-70/step-70.cc

index f5ca8c633fdbb73faa320e70fce43d99a111a44e..a58d28eb7024f202dadef28e84339e5ccd97b65d 100644 (file)
@@ -677,7 +677,7 @@ namespace Step70
     using map_type  = std::map<types::manifold_id, std::string>;
     using Converter = Patterns::Tools::Convert<map_type>;
 
-    for (const auto pair : Converter::to_value(ids_and_cad_file_names))
+    for (const auto &pair : Converter::to_value(ids_and_cad_file_names))
       {
         const auto &manifold_id   = pair.first;
         const auto &cad_file_name = pair.second;

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.