]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Mark a function as static. 4030/head
authorDavid Wells <wellsd2@rpi.edu>
Sat, 4 Mar 2017 22:25:43 +0000 (17:25 -0500)
committerDavid Wells <wellsd2@rpi.edu>
Sat, 4 Mar 2017 23:38:58 +0000 (18:38 -0500)
This was caught by cppcheck.

source/fe/fe_tools_extrapolate.cc

index d902e5f50b33d29b41bbd1003eb9eda90bfe6bc7..ed261df87ff14568415dc6c4031382fe2257abc0 100644 (file)
@@ -334,11 +334,11 @@ namespace FETools
       // add new cell_data to
       // the ordered list new_needs
       // uses cell_data_insert
-      void add_new_need (const typename dealii::internal::p4est::types<dim>::forest    &forest,
-                         const typename dealii::internal::p4est::types<dim>::locidx    &tree_index,
-                         const typename DoFHandler<dim,spacedim>::cell_iterator        &dealii_cell,
-                         const typename dealii::internal::p4est::types<dim>::quadrant  &p4est_cell,
-                         std::vector<CellData>                                         &new_needs) const;
+      static void add_new_need (const typename dealii::internal::p4est::types<dim>::forest    &forest,
+                                const typename dealii::internal::p4est::types<dim>::locidx    &tree_index,
+                                const typename DoFHandler<dim,spacedim>::cell_iterator        &dealii_cell,
+                                const typename dealii::internal::p4est::types<dim>::quadrant  &p4est_cell,
+                                std::vector<CellData>                                         &new_needs);
 
       // binary search in cells_list
       // assume that cells_list
@@ -1128,7 +1128,7 @@ namespace FETools
                   const typename dealii::internal::p4est::types<dim>::locidx    &tree_index,
                   const typename DoFHandler<dim,spacedim>::cell_iterator        &dealii_cell,
                   const typename dealii::internal::p4est::types<dim>::quadrant  &p4est_cell,
-                  std::vector<CellData>                                         &new_needs) const
+                  std::vector<CellData>                                         &new_needs)
     {
       const FiniteElement<dim,spacedim> &fe            = dealii_cell->get_dof_handler().get_fe();
       const unsigned int                 dofs_per_cell = fe.dofs_per_cell;

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.