summaryrefslogtreecommitdiff
path: root/lotuswordpro
diff options
context:
space:
mode:
authorRadu Ioan <ioan.radu.g@gmail.com>2012-12-31 01:27:47 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-12-30 23:32:26 +0000
commit3b1da9e650db388baa6d649219e2a0e45b58f062 (patch)
treeaaac9a9d8fea05061a8b83922b5157ef1971c160 /lotuswordpro
parentafb9d7d84cb25d91335467dd5e121f353e37a3ff (diff)
fdo#39440 - cppcheck cleanliness
removed some cppcheck warning Change-Id: I81963001e4737c583764b07bea9abf59a61dead7 Reviewed-on: https://gerrit.libreoffice.org/1518 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'lotuswordpro')
-rw-r--r--lotuswordpro/source/filter/lwpbackgroundstuff.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/lotuswordpro/source/filter/lwpbackgroundstuff.cxx b/lotuswordpro/source/filter/lwpbackgroundstuff.cxx
index d26e0b302b67..a38d41920235 100644
--- a/lotuswordpro/source/filter/lwpbackgroundstuff.cxx
+++ b/lotuswordpro/source/filter/lwpbackgroundstuff.cxx
@@ -169,11 +169,8 @@ XFBGImage* LwpBackgroundStuff::GetFillPattern()
XFBGImage* pXFBGImage = new XFBGImage();
pXFBGImage->SetImageData(pImageBuff, nSize);
- if (pImageBuff)
- {
- delete [] pImageBuff;
- pImageBuff = NULL;
- }
+ delete [] pImageBuff;
+ pImageBuff = NULL;
pXFBGImage->SetRepeate();