]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Made both the guilty iterators const.
authorluca <luca@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 8 Mar 2005 14:39:54 +0000 (14:39 +0000)
committerluca <luca@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 8 Mar 2005 14:39:54 +0000 (14:39 +0000)
git-svn-id: https://svn.dealii.org/trunk@10042 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/source/function_parser.cc

index a91a2494665cfba5c4d7e1df854d6d04ae094092..c9cf0cf909e51a2fe9c308155512cf68c2ce3e05 100644 (file)
@@ -54,9 +54,8 @@ void FunctionParser<dim>::initialize(const std::string variables,
 
   for (unsigned int i=0; i<this->n_components; ++i) {
     // Add the variuous constants to the parser.
-    std::map< std::string, double >::iterator
-      constant = constants.begin();
     std::map< std::string, double >::const_iterator
+      constant = constants.begin(),
       endc  = constants.end();
     for(;constant != endc; ++constant) {
       AssertThrow( fp[i].AddConstant(constant->first, constant->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.