From: Wolfgang Bangerth Date: Sat, 25 Aug 2018 13:19:39 +0000 (-0600) Subject: Don't use a reference for a 'const unsigned int'. X-Git-Tag: v9.1.0-rc1~778^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F7119%2Fhead;p=dealii.git Don't use a reference for a 'const unsigned int'. --- diff --git a/include/deal.II/fe/fe_enriched.h b/include/deal.II/fe/fe_enriched.h index a7e903819d..012a35b8eb 100644 --- a/include/deal.II/fe/fe_enriched.h +++ b/include/deal.II/fe/fe_enriched.h @@ -890,7 +890,7 @@ namespace ColorEnriched template void make_colorwise_enrichment_functions( - const unsigned int & n_colors, + const unsigned int n_colors, const std::vector>> &enrichments, const std::map> &cellwise_color_predicate_map, @@ -916,7 +916,7 @@ namespace ColorEnriched template void make_fe_collection_from_colored_enrichments( - const unsigned int &n_colors, + const unsigned int n_colors, const std::vector> &fe_sets, // total list of color sets possible const std::vector *( diff --git a/source/fe/fe_enriched.cc b/source/fe/fe_enriched.cc index 4eaa94646b..a7f482d8ca 100644 --- a/source/fe/fe_enriched.cc +++ b/source/fe/fe_enriched.cc @@ -1334,7 +1334,7 @@ namespace ColorEnriched template void make_colorwise_enrichment_functions( - const unsigned int & n_colors, + const unsigned int n_colors, const std::vector>> &enrichments, const std::map> &cellwise_color_predicate_map, @@ -1382,7 +1382,7 @@ namespace ColorEnriched template void make_fe_collection_from_colored_enrichments( - const unsigned int & n_colors, + const unsigned int n_colors, const std::vector> &fe_sets, const std::vector *( const typename Triangulation::cell_iterator &)>> diff --git a/source/fe/fe_enriched.inst.in b/source/fe/fe_enriched.inst.in index cf527af200..2711744997 100644 --- a/source/fe/fe_enriched.inst.in +++ b/source/fe/fe_enriched.inst.in @@ -58,7 +58,7 @@ for (deal_II_dimension : DIMENSIONS; deal_II_space_dimension : SPACE_DIMENSIONS) template void make_colorwise_enrichment_functions( - const unsigned int &num_colors, + const unsigned int n_colors, const std::vector>> &enrichments, const std::map> @@ -71,7 +71,7 @@ for (deal_II_dimension : DIMENSIONS; deal_II_space_dimension : SPACE_DIMENSIONS) template void make_fe_collection_from_colored_enrichments( - const unsigned int & num_colors, + const unsigned int n_colors, const std::vector> &fe_sets, const std::vector< std::function *(