[Libreoffice-commits] .: lotuswordpro/source

Caolán McNamara caolan at kemper.freedesktop.org
Wed Jan 26 12:16:01 PST 2011


 lotuswordpro/source/filter/xfilter/xfcell.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit cc92ab16be0a727452bf1bf6958bc106121bd51e
Author: An Leenders <an at Fluffy.(none)>
Date:   Tue Jan 25 17:38:06 2011 +0100

    cpp cleanliness: check for assignment to self

diff --git a/lotuswordpro/source/filter/xfilter/xfcell.cxx b/lotuswordpro/source/filter/xfilter/xfcell.cxx
index b68eddf..cf5ee7d 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;
 


More information about the Libreoffice-commits mailing list