summaryrefslogtreecommitdiff
path: root/lotuswordpro
diff options
context:
space:
mode:
authorAn Leenders <an@Fluffy.(none)>2011-01-25 17:38:06 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-01-26 20:15:56 +0000
commit31b6fe42e20b67a29e49612638c7d23415f963f6 (patch)
tree95050b82ea58929c6f7e5830bc5dabcabb02d579 /lotuswordpro
parent7fbf4facbb96088da82203f27fe0a5aee84ea616 (diff)
cpp cleanliness: check for assignment to self
Diffstat (limited to 'lotuswordpro')
-rw-r--r--lotuswordpro/source/filter/xfilter/xfcell.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/lotuswordpro/source/filter/xfilter/xfcell.cxx b/lotuswordpro/source/filter/xfilter/xfcell.cxx
index e6e5fe306f9d..692cd5ca0a8d 100644
--- a/lotuswordpro/source/filter/xfilter/xfcell.cxx
+++ b/lotuswordpro/source/filter/xfilter/xfcell.cxx
@@ -95,6 +95,9 @@ XFCell::XFCell(const XFCell& other) : XFContentContainer(other)
XFCell& XFCell::operator=(const XFCell& other)
{
+ if( this == &other )
+ return *this;
+
if( m_pSubTable )
delete m_pSubTable;