Commit 004cad2e authored by Sean McBride's avatar Sean McBride Committed by Code Review
Browse files

Merge topic 'rule-of-three' into master

9e42e0e1 Removed a bunch of empty destructors
parents f5bb69d1 9e42e0e1
......@@ -120,7 +120,6 @@ public:
typedef typename Base::Parm1 Parm1;
FunctorHandler(Fun& fun) : f_(fun) {}
virtual ~FunctorHandler(){}
ResultType operator()(Parm1& p1)
{ return f_(p1); }
......@@ -257,7 +256,6 @@ public:
typedef typename Base::Parm2 Parm2;
FunctorHandler(const Fun& fun) : f_(fun) {}
virtual ~FunctorHandler(){}
ResultType operator()(Parm1& p1,Parm2& p2)
{ return f_(p1,p2); }
......
......@@ -77,7 +77,6 @@ public:
this->coord[1] = y;
this->coord[2] = z;
}
~Coord() {}
inline bool operator < (const Coord & other) const
{
......
......@@ -67,12 +67,6 @@ vtkStructuredAMRNeighbor::vtkStructuredAMRNeighbor(
}
//-----------------------------------------------------------------------------
vtkStructuredAMRNeighbor::~vtkStructuredAMRNeighbor()
{
// TODO Auto-generated destructor stub
}
//-----------------------------------------------------------------------------
vtkStructuredAMRNeighbor& vtkStructuredAMRNeighbor::operator=(
const vtkStructuredAMRNeighbor &N)
......
......@@ -67,10 +67,6 @@ public:
int orient[3],
const int relationShip);
// Description:
// Destructor.
virtual ~vtkStructuredAMRNeighbor();
// Description:
// Overload assignment operator.
vtkStructuredAMRNeighbor& operator=(const vtkStructuredAMRNeighbor &N);
......
......@@ -434,9 +434,6 @@ public:
vtkStdString(e)
{
}
~vtkFoamError()
{
}
// a super-easy way to make use of operator<<()'s defined in
// vtksys_ios::ostringstream class
template <class T> vtkFoamError& operator<<(const T& t)
......
......@@ -56,9 +56,6 @@ public:
{
this->LastMTime = static_cast<unsigned long>(-1); //almost invalid state
}
~OffsetsManager()
{
}
void Allocate(int numTimeStep)
{
assert( numTimeStep > 0);
......
......@@ -197,7 +197,6 @@ struct Coord
this->coord[0] = src[0];
this->coord[1] = src[1];
}
~Coord() {}
static double distance(Coord x,Coord y)
{
......
......@@ -53,10 +53,6 @@ public:
{
}
~vtkContextMouseEvent()
{
}
// Description:
// Set the interactor for the mouse event.
void SetInteractor(vtkRenderWindowInteractor *interactor)
......
......@@ -89,14 +89,6 @@ octree_cursor<T_,R_,P_,O_,OP_,d_>::octree_cursor( const const_path& src )
this->_M_current_node = src._M_current_node;
}
/**\brief Destructor.
*
*/
template< typename T_, typename R_, typename P_, typename O_, typename OP_, int d_ >
octree_cursor<T_,R_,P_,O_,OP_,d_>::~octree_cursor()
{
}
/**\brief Move the cursor up one level.
*
* If this is called when the cursor is on the root node, it has no effect.
......
......@@ -36,7 +36,6 @@ public:
octree_cursor( octree_pointer otree );
octree_cursor( octree_node_pointer oroot );
octree_cursor( const const_path& src );
~octree_cursor();
void up();
void down( int child_of_this_node );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment