From 65d944aaaa35d04f46198f33e62780dacfb3c8a0 Mon Sep 17 00:00:00 2001 From: bangerth Date: Thu, 27 Feb 2014 20:52:58 +0000 Subject: [PATCH] Avoid a warning. In this context, also realize that we take references to temporary variables; the standard says that this can work, but it is best avoided by being explicit about the lifetime of a variable. git-svn-id: https://svn.dealii.org/trunk@32575 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/source/fe/fe_nedelec.cc | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/deal.II/source/fe/fe_nedelec.cc b/deal.II/source/fe/fe_nedelec.cc index 61111bb018..29c15ced94 100644 --- a/deal.II/source/fe/fe_nedelec.cc +++ b/deal.II/source/fe/fe_nedelec.cc @@ -246,11 +246,10 @@ FE_Nedelec<2>::initialize_support_points (const unsigned int degree) // Initialize quadratures to obtain // quadrature points later on. const QGauss reference_edge_quadrature (degree + 1); - const unsigned int & - n_edge_points = reference_edge_quadrature.size (); + const unsigned int n_edge_points = reference_edge_quadrature.size (); const unsigned int n_boundary_points = GeometryInfo::lines_per_cell * n_edge_points; - const Quadrature &edge_quadrature + const Quadrature edge_quadrature = QProjector::project_to_all_faces (reference_edge_quadrature); this->generalized_face_support_points.resize (n_edge_points); @@ -300,10 +299,6 @@ FE_Nedelec<2>::initialize_support_points (const unsigned int degree) { // In this case we only need support points // on the faces of a cell. - const Quadrature &edge_quadrature - = QProjector::project_to_all_faces - (reference_edge_quadrature); - this->generalized_support_points.resize (n_boundary_points); for (unsigned int line = 0; -- 2.39.5