summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAn Leenders <an@Fluffy.(none)>2011-01-25 17:38:27 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-01-26 20:16:07 +0000
commit28a69934661bf3e3e366e6474ecac2ddb0507066 (patch)
tree1f6bd3f673ae9dff600a026f6e6ec892b24873d3
parent3d402fce3af34b82c4a27adaf7f77aa2c3a3d6df (diff)
cpp cleanliness: check for assignment to self
Notes
split repo tag: writer_LO-BASE-INTEGRATION-DEV300_m98
-rw-r--r--sw/source/filter/ww8/ww8scan.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sw/source/filter/ww8/ww8scan.cxx b/sw/source/filter/ww8/ww8scan.cxx
index f85f3deff147..38cfb171a9ad 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;