diff options
author | An Leenders <an@Fluffy.(none)> | 2011-01-25 17:38:27 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-01-26 20:16:07 +0000 |
commit | 91efc279ab46267e89212afc55fc2a6c1a6350be (patch) | |
tree | a1b1c4c5f07d88d4693caa3fb1f8f62e6dc3f79d | |
parent | f3bd7b6163127c7db353515932f7891f6d9384dc (diff) |
cpp cleanliness: check for assignment to selfLO-BASE-INTEGRATION-DEV300_m98
-rw-r--r-- | sw/source/filter/ww8/ww8scan.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sw/source/filter/ww8/ww8scan.cxx b/sw/source/filter/ww8/ww8scan.cxx index e05eb2ea32..13e9f915f0 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; |