From 39116443366e62df4e56fa317841f88f6f4c57b1 Mon Sep 17 00:00:00 2001 From: David Wells Date: Sat, 27 Jan 2018 13:18:54 -0500 Subject: [PATCH] Use default copy constructors. This was found by cppcheck. --- include/deal.II/base/synchronous_iterator.h | 14 ----------- include/deal.II/hp/q_collection.h | 27 --------------------- 2 files changed, 41 deletions(-) diff --git a/include/deal.II/base/synchronous_iterator.h b/include/deal.II/base/synchronous_iterator.h index 82d1d069af..784a17e72a 100644 --- a/include/deal.II/base/synchronous_iterator.h +++ b/include/deal.II/base/synchronous_iterator.h @@ -55,11 +55,6 @@ struct SynchronousIterators */ SynchronousIterators (const Iterators &i); - /** - * Copy constructor. - */ - SynchronousIterators (const SynchronousIterators &i); - /** * Dereference const operator. Returns a const reference to the iterators * represented by the current class. @@ -90,15 +85,6 @@ SynchronousIterators (const Iterators &i) {} -template -inline -SynchronousIterators:: -SynchronousIterators (const SynchronousIterators &i) - : - iterators (i.iterators) -{} - - template inline diff --git a/include/deal.II/hp/q_collection.h b/include/deal.II/hp/q_collection.h index def53ed255..ff96589542 100644 --- a/include/deal.II/hp/q_collection.h +++ b/include/deal.II/hp/q_collection.h @@ -60,11 +60,6 @@ namespace hp */ explicit QCollection (const Quadrature &quadrature); - /** - * Copy constructor. - */ - QCollection (const QCollection &q_collection); - /** * Adds a new quadrature rule to the QCollection. In most cases, you will * want to add quadrature rules in the same order as the elements were @@ -186,28 +181,6 @@ namespace hp - template - inline - QCollection:: - QCollection (const QCollection &q_collection) - : - Subscriptor (), - // copy the array - // of shared - // pointers. nothing - // bad should - // happen -- they - // simply all point - // to the same - // objects, and the - // last one to die - // will delete the - // mappings - quadratures (q_collection.quadratures) - {} - - - template inline std::size_t -- 2.39.5