]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Simplify some con/destructors by using =default. 5165/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Wed, 27 Sep 2017 19:40:05 +0000 (13:40 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Wed, 27 Sep 2017 19:40:44 +0000 (13:40 -0600)
include/deal.II/base/quadrature_point_data.h

index 3ba484cec236d12ec973ab94d804c334d45379b4..323b61fe4d9c30a0fbef493b92cade1df1193d5d 100644 (file)
@@ -58,12 +58,12 @@ public:
   /**
    * Default constructor.
    */
-  CellDataStorage();
+  CellDataStorage() = default;
 
   /**
    * Default destructor.
    */
-  ~CellDataStorage();
+  ~CellDataStorage() = default;
 
   /**
    * Initialize data on the @p cell to store @p number_of_data_points_per_cell of objects of type @p T .
@@ -174,12 +174,12 @@ public:
   /**
    * Default constructor.
    */
-  TransferableQuadraturePointData();
+  TransferableQuadraturePointData() = default;
 
   /**
    * Default virtual destructor.
    */
-  virtual ~TransferableQuadraturePointData();
+  virtual ~TransferableQuadraturePointData() = default;
 
   /**
    * Return the total number of values which will be
@@ -466,35 +466,10 @@ namespace parallel
 
 // -------------------  inline and template functions ----------------
 
-//--------------------------------------------------------------------
-//                         TransferableQuadraturePointData
-//--------------------------------------------------------------------
-inline TransferableQuadraturePointData::TransferableQuadraturePointData()
-{}
-
-inline TransferableQuadraturePointData::~TransferableQuadraturePointData()
-{}
-
 //--------------------------------------------------------------------
 //                         CellDataStorage
 //--------------------------------------------------------------------
 
-template <typename CellIteratorType, typename DataType>
-CellDataStorage<CellIteratorType,DataType>::
-CellDataStorage()
-  :
-  Subscriptor()
-{}
-
-
-
-template <typename CellIteratorType, typename DataType>
-CellDataStorage<CellIteratorType,DataType>::
-~CellDataStorage()
-{}
-
-
-
 template <typename CellIteratorType, typename DataType>
 template <typename T>
 void CellDataStorage<CellIteratorType,DataType>::initialize(const CellIteratorType &cell,

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.