From 9dd5b4c744deb59ca49eb350d313a0e05eb5be17 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Sun, 26 Aug 2018 12:46:54 +0200 Subject: [PATCH] Avoid const reference to temporary --- source/grid/grid_tools_dof_handlers.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/grid/grid_tools_dof_handlers.cc b/source/grid/grid_tools_dof_handlers.cc index 132fe14ed0..1882e6e985 100644 --- a/source/grid/grid_tools_dof_handlers.cc +++ b/source/grid/grid_tools_dof_handlers.cc @@ -1003,7 +1003,7 @@ namespace GridTools const std::pair, double> &cell_enclosing_ball = cell->enclosing_ball(); - const Point &cell_enclosing_ball_center = + const Point cell_enclosing_ball_center = cell_enclosing_ball.first; const double cell_enclosing_ball_radius = cell_enclosing_ball.second; -- 2.39.5