diff options
author | An Leenders <an@Fluffy.(none)> | 2011-01-25 17:38:19 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-01-26 20:16:30 +0000 |
commit | 6c6eafb05b11efda309ce9cfdbb0a89c5df3d74f (patch) | |
tree | d1c6f1f6b4a6bb48656f68413885384bda65c7b7 /svtools | |
parent | 9be6b3dc4994c9d9656d15df086158f75236535d (diff) |
cpp cleanliness: check for assignment to self
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/control/ruler.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/svtools/source/control/ruler.cxx b/svtools/source/control/ruler.cxx index 7ce2b5c9e14f..d1b94e6d72dc 100644 --- a/svtools/source/control/ruler.cxx +++ b/svtools/source/control/ruler.cxx @@ -193,6 +193,9 @@ ImplRulerData::~ImplRulerData() ImplRulerData& ImplRulerData::operator=( const ImplRulerData& rData ) { + if( this == &rData ) + return *this; + delete[] pLines; delete[] pArrows; delete[] pBorders; |