From: wolf Date: Wed, 16 May 2001 11:08:57 +0000 (+0000) Subject: Make two variables const and thus Intel C++ compiler more happy. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9e4a89e0430a6732fe457e2089922e28591078a;p=dealii-svn.git Make two variables const and thus Intel C++ compiler more happy. git-svn-id: https://svn.dealii.org/trunk@4613 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/base/source/data_out_base.cc b/deal.II/base/source/data_out_base.cc index abe50d9fb9..6567017092 100644 --- a/deal.II/base/source/data_out_base.cc +++ b/deal.II/base/source/data_out_base.cc @@ -2245,9 +2245,11 @@ void DataOutInterface::write_vtk (std::ostream &out) const template -void DataOutInterface::write (std::ostream &out, - OutputFormat output_format) const +void +DataOutInterface::write (std::ostream &out, + const OutputFormat output_format_) const { + OutputFormat output_format = output_format_; if (output_format == default_format) output_format = default_fmt; @@ -2285,7 +2287,7 @@ void DataOutInterface::write (std::ostream &out, template -void DataOutInterface::set_default_format(OutputFormat fmt) +void DataOutInterface::set_default_format(const OutputFormat fmt) { Assert(fmt != default_format, ExcNotImplemented()); default_fmt = fmt; @@ -2342,8 +2344,10 @@ void DataOutInterface::set_flags (const VtkFlags &flags) template -std::string DataOutInterface::default_suffix (OutputFormat output_format) const +std::string +DataOutInterface::default_suffix (const OutputFormat output_format_) const { + OutputFormat output_format = output_format_; if (output_format == default_format) output_format = default_fmt; diff --git a/deal.II/deal.II/include/grid/geometry_info.h b/deal.II/deal.II/include/grid/geometry_info.h index 2146aec269..72b42ee7d9 100644 --- a/deal.II/deal.II/include/grid/geometry_info.h +++ b/deal.II/deal.II/include/grid/geometry_info.h @@ -168,8 +168,8 @@ struct GeometryInfo * laid down in the documentation of * the @ref{Triangulation} class. */ - static unsigned int child_cell_on_face (unsigned int face, - unsigned int subface); + static unsigned int child_cell_on_face (const unsigned int face, + const unsigned int subface); };