From: David Wells Date: Sat, 4 Mar 2017 22:25:43 +0000 (-0500) Subject: Mark a function as static. X-Git-Tag: v8.5.0-rc1~70^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F4030%2Fhead;p=dealii.git Mark a function as static. This was caught by cppcheck. --- diff --git a/source/fe/fe_tools_extrapolate.cc b/source/fe/fe_tools_extrapolate.cc index d902e5f50b..ed261df87f 100644 --- a/source/fe/fe_tools_extrapolate.cc +++ b/source/fe/fe_tools_extrapolate.cc @@ -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::forest &forest, - const typename dealii::internal::p4est::types::locidx &tree_index, - const typename DoFHandler::cell_iterator &dealii_cell, - const typename dealii::internal::p4est::types::quadrant &p4est_cell, - std::vector &new_needs) const; + static void add_new_need (const typename dealii::internal::p4est::types::forest &forest, + const typename dealii::internal::p4est::types::locidx &tree_index, + const typename DoFHandler::cell_iterator &dealii_cell, + const typename dealii::internal::p4est::types::quadrant &p4est_cell, + std::vector &new_needs); // binary search in cells_list // assume that cells_list @@ -1128,7 +1128,7 @@ namespace FETools const typename dealii::internal::p4est::types::locidx &tree_index, const typename DoFHandler::cell_iterator &dealii_cell, const typename dealii::internal::p4est::types::quadrant &p4est_cell, - std::vector &new_needs) const + std::vector &new_needs) { const FiniteElement &fe = dealii_cell->get_dof_handler().get_fe(); const unsigned int dofs_per_cell = fe.dofs_per_cell;