From 7a8c4bc87c63cf4e5837723a58a508dc1b6f0b04 Mon Sep 17 00:00:00 2001
From: Wolfgang Bangerth <bangerth@colostate.edu>
Date: Sat, 25 Aug 2018 07:19:39 -0600
Subject: [PATCH] Don't use a reference for a 'const unsigned int'.

---
 include/deal.II/fe/fe_enriched.h | 4 ++--
 source/fe/fe_enriched.cc         | 4 ++--
 source/fe/fe_enriched.inst.in    | 4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)

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 <int dim, int spacedim>
     void
     make_colorwise_enrichment_functions(
-      const unsigned int &                                    n_colors,
+      const unsigned int                                      n_colors,
       const std::vector<std::shared_ptr<Function<spacedim>>> &enrichments,
       const std::map<unsigned int, std::map<unsigned int, unsigned int>>
         &cellwise_color_predicate_map,
@@ -916,7 +916,7 @@ namespace ColorEnriched
     template <int dim, int spacedim>
     void
     make_fe_collection_from_colored_enrichments(
-      const unsigned int &n_colors,
+      const unsigned int n_colors,
       const std::vector<std::set<unsigned int>>
         &fe_sets, // total list of color sets possible
       const std::vector<std::function<const Function<spacedim> *(
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 <int dim, int spacedim>
     void
     make_colorwise_enrichment_functions(
-      const unsigned int &                                    n_colors,
+      const unsigned int                                      n_colors,
       const std::vector<std::shared_ptr<Function<spacedim>>> &enrichments,
       const std::map<unsigned int, std::map<unsigned int, unsigned int>>
         &cellwise_color_predicate_map,
@@ -1382,7 +1382,7 @@ namespace ColorEnriched
     template <int dim, int spacedim>
     void
     make_fe_collection_from_colored_enrichments(
-      const unsigned int &                       n_colors,
+      const unsigned int                         n_colors,
       const std::vector<std::set<unsigned int>> &fe_sets,
       const std::vector<std::function<const Function<spacedim> *(
         const typename Triangulation<dim, spacedim>::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<deal_II_dimension,
                                             deal_II_space_dimension>(
-          const unsigned int &num_colors,
+          const unsigned int n_colors,
           const std::vector<std::shared_ptr<Function<deal_II_space_dimension>>>
             &enrichments,
           const std::map<unsigned int, std::map<unsigned int, unsigned int>>
@@ -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<std::set<unsigned int>> &fe_sets,
           const std::vector<
             std::function<const Function<deal_II_space_dimension> *(
-- 
2.39.5