cpp cleanliness: check for assignment to self

This commit is contained in:
An Leenders
2011-01-25 17:38:19 +01:00
committed by Caolán McNamara
parent 9be6b3dc49
commit 6c6eafb05b

View File

@@ -193,6 +193,9 @@ ImplRulerData::~ImplRulerData()
ImplRulerData& ImplRulerData::operator=( const ImplRulerData& rData )
{
if( this == &rData )
return *this;
delete[] pLines;
delete[] pArrows;
delete[] pBorders;