From: David Wells Date: Sat, 27 Jan 2018 18:18:54 +0000 (-0500) Subject: Use default copy constructors. X-Git-Tag: v9.0.0-rc1~505^2~5 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=39116443366e62df4e56fa317841f88f6f4c57b1;p=dealii.git Use default copy constructors. This was found by cppcheck. --- 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