]> https://gitweb.dealii.org/ - dealii.git/commitdiff
cppcheck: remove a duplicate static constant.
authorDavid Wells <drwells@email.unc.edu>
Mon, 13 May 2019 14:58:24 +0000 (10:58 -0400)
committerDavid Wells <drwells@email.unc.edu>
Mon, 13 May 2019 19:56:35 +0000 (15:56 -0400)
This is the same as the one in the base class.

include/deal.II/lac/sparsity_pattern.h
source/lac/sparsity_pattern.cc

index e87ca818e207142a00b922efbfb2abd6afab609a..9229da2dc01008bd22cf6437ea62eae085b9c3f0 100644 (file)
@@ -884,22 +884,6 @@ public:
    */
   using SparsityPatternBase::reinit;
 
-  /**
-   * Define a value which is used to indicate that a certain value in the
-   * #colnums array is unused, i.e. does not represent a certain column number
-   * index.
-   *
-   * Indices with this invalid value are used to insert new entries to the
-   * sparsity pattern using the add() member function, and are removed when
-   * calling compress().
-   *
-   * You should not assume that the variable declared here has a certain
-   * value. The initialization is given here only to enable the compiler to
-   * perform some optimizations, but the actual value of the variable may
-   * change over time.
-   */
-  static const size_type invalid_entry = SparsityPatternBase::invalid_entry;
-
   /**
    * @name Construction and setup Constructors, destructor; functions
    * initializing, copying and filling an object.
index 17c1e7de4d21c3c3814c8bca115f4e7c5d915725..3e567f6f93b84737568e675c10cf7bb41dc6b9de 100644 (file)
@@ -34,8 +34,7 @@ DEAL_II_NAMESPACE_OPEN
 #ifdef DEAL_II_MSVC
 __declspec(selectany) // Weak extern binding due to multiple link error
 #endif
-  const SparsityPattern::size_type SparsityPattern::invalid_entry;
-const SparsityPatternBase::size_type SparsityPatternBase::invalid_entry;
+  const SparsityPatternBase::size_type SparsityPatternBase::invalid_entry;
 
 
 SparsityPatternBase::SparsityPatternBase()

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.