]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use const references instead of copies.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 20 Jan 2010 13:19:26 +0000 (13:19 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 20 Jan 2010 13:19:26 +0000 (13:19 +0000)
git-svn-id: https://svn.dealii.org/trunk@20399 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/numerics/mesh_worker_loop.h

index e358090f9acf307a010e7f89c3a40548ba74ca06..e56ad9bf09dcbc3fd8d90763ac57fef1594029e5 100644 (file)
@@ -71,9 +71,9 @@ namespace MeshWorker
            typename identity<ITERATOR>::type end,
            CELLINFO& cellinfo, FACEINFO& bdryinfo,
            FACEINFO& faceinfo, FACEINFO& subfaceinfo, FACEINFO& ngbrinfo,
-           std_cxx1x::function<void (CELLINFO &)> cell_worker,
-           std_cxx1x::function<void (FACEINFO &)> boundary_worker,
-           std_cxx1x::function<void (FACEINFO &, FACEINFO &)> face_worker,
+           const std_cxx1x::function<void (CELLINFO &)> &cell_worker,
+           const std_cxx1x::function<void (FACEINFO &)> &boundary_worker,
+           const std_cxx1x::function<void (FACEINFO &, FACEINFO &)> &face_worker,
            bool cells_first = true)
   {
     const bool integrate_cell          = (cell_worker != 0);

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.