cpp cleanliness: check for assignment to self
This commit is contained in:
committed by
Caolán McNamara
parent
9be6b3dc49
commit
6c6eafb05b
@@ -193,6 +193,9 @@ ImplRulerData::~ImplRulerData()
|
||||
|
||||
ImplRulerData& ImplRulerData::operator=( const ImplRulerData& rData )
|
||||
{
|
||||
if( this == &rData )
|
||||
return *this;
|
||||
|
||||
delete[] pLines;
|
||||
delete[] pArrows;
|
||||
delete[] pBorders;
|
||||
|
Reference in New Issue
Block a user