]> https://gitweb.dealii.org/ - dealii.git/commitdiff
modernize-use-equals-default
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Tue, 29 Jan 2019 09:57:27 +0000 (10:57 +0100)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Tue, 29 Jan 2019 10:01:48 +0000 (11:01 +0100)
include/deal.II/grid/filtered_iterator.h
include/deal.II/lac/dynamic_sparsity_pattern.h
include/deal.II/matrix_free/matrix_free.h

index c7b6b8e771e48f9898f76d524598de01f055c989..88f47c7a3bfb86d08dca1b45b119bf3649bbc7f1 100644 (file)
@@ -567,11 +567,6 @@ public:
    */
   FilteredIterator(const FilteredIterator &fi);
 
-  /**
-   * Destructor.
-   */
-  ~FilteredIterator();
-
   /**
    * Assignment operator. Copy the iterator value of the argument, but as
    * discussed in the class documentation, the predicate of the argument is
@@ -966,14 +961,6 @@ inline FilteredIterator<BaseIterator>::FilteredIterator(
 
 
 
-template <typename BaseIterator>
-inline FilteredIterator<BaseIterator>::~FilteredIterator()
-{
-  predicate.reset();
-}
-
-
-
 template <typename BaseIterator>
 inline FilteredIterator<BaseIterator> &
 FilteredIterator<BaseIterator>::operator=(const FilteredIterator &fi)
index b5f1dd36a1d55c5db415a5e7c6bdb4948dfc8ada..ed2a200179cc02cb1517ee7e683808b9843e4536 100644 (file)
@@ -210,7 +210,7 @@ namespace DynamicSparsityPatternIterators
      * here only to be able to store iterators in STL containers such as
      * `std::vector`.
      */
-    Iterator();
+    Iterator() = default;
 
     /**
      * Prefix increment.
@@ -886,12 +886,6 @@ namespace DynamicSparsityPatternIterators
 
 
 
-  inline Iterator::Iterator()
-    : accessor()
-  {}
-
-
-
   inline Iterator &
   Iterator::operator++()
   {
index 15a1e5e32dc744b80d5f58ef7a5901d6fc48200b..a0134ebfe76d6bbfaab8aac6c15002342fe5c37e 100644 (file)
@@ -2666,7 +2666,7 @@ namespace internal
             3);
     }
 
-    ~VectorDataExchange()
+    ~VectorDataExchange() // NOLINT
     {
 #  ifdef DEAL_II_WITH_MPI
       for (unsigned int i = 0; i < tmp_data.size(); ++i)

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.