From: Wolfgang Bangerth Date: Wed, 20 Jan 2010 13:19:26 +0000 (+0000) Subject: Use const references instead of copies. X-Git-Tag: v8.0.0~6607 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8629d50665fcdc8b608ee1af139af8a9fd2c3193;p=dealii.git Use const references instead of copies. git-svn-id: https://svn.dealii.org/trunk@20399 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/include/numerics/mesh_worker_loop.h b/deal.II/deal.II/include/numerics/mesh_worker_loop.h index e358090f9a..e56ad9bf09 100644 --- a/deal.II/deal.II/include/numerics/mesh_worker_loop.h +++ b/deal.II/deal.II/include/numerics/mesh_worker_loop.h @@ -71,9 +71,9 @@ namespace MeshWorker typename identity::type end, CELLINFO& cellinfo, FACEINFO& bdryinfo, FACEINFO& faceinfo, FACEINFO& subfaceinfo, FACEINFO& ngbrinfo, - std_cxx1x::function cell_worker, - std_cxx1x::function boundary_worker, - std_cxx1x::function face_worker, + const std_cxx1x::function &cell_worker, + const std_cxx1x::function &boundary_worker, + const std_cxx1x::function &face_worker, bool cells_first = true) { const bool integrate_cell = (cell_worker != 0);