]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Circumvent declaring an unused variable 5300/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sun, 22 Oct 2017 13:16:38 +0000 (15:16 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sun, 22 Oct 2017 14:07:39 +0000 (16:07 +0200)
source/base/parameter_acceptor.cc

index 29efc99b2746444695cacad94e784161f9aae18c..e0303a964022b404eab3d8765430461d3cbf0e38 100644 (file)
@@ -229,7 +229,7 @@ void ParameterAcceptor::enter_my_subsection(ParameterHandler &prm=ParameterAccep
 void ParameterAcceptor::leave_my_subsection(ParameterHandler &prm=ParameterAcceptor::prm)
 {
   const auto sections = get_section_path();
-  for (const auto &sec : sections)
+  for (unsigned int i=0; i<sections.size(); ++i)
     {
       prm.leave_subsection();
     }

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.