[Libreoffice-commits] .: sw/source
Caolán McNamara
caolan at kemper.freedesktop.org
Wed Jan 26 12:16:22 PST 2011
sw/source/filter/ww8/ww8scan.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 91efc279ab46267e89212afc55fc2a6c1a6350be
Author: An Leenders <an at Fluffy.(none)>
Date: Tue Jan 25 17:38:27 2011 +0100
cpp cleanliness: check for assignment to self
diff --git a/sw/source/filter/ww8/ww8scan.cxx b/sw/source/filter/ww8/ww8scan.cxx
index e05eb2e..13e9f91 100644
--- a/sw/source/filter/ww8/ww8scan.cxx
+++ b/sw/source/filter/ww8/ww8scan.cxx
@@ -2723,6 +2723,9 @@ WW8PLCFx_Fc_FKP::WW8Fkp::Entry::Entry(const Entry &rEntry)
WW8PLCFx_Fc_FKP::WW8Fkp::Entry&
WW8PLCFx_Fc_FKP::WW8Fkp::Entry::operator=(const Entry &rEntry)
{
+ if (this == &rEntry)
+ return *this;
+
if (mbMustDelete)
delete[] mpData;
More information about the Libreoffice-commits
mailing list