Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index


Hi,

I have submitted a patch for review:

    https://gerrit.libreoffice.org/1518

To pull it, you can do:

    git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/18/1518/1

fdo#39440 - cppcheck cleanliness

removed some cppcheck warning

Change-Id: I81963001e4737c583764b07bea9abf59a61dead7
---
M lotuswordpro/source/filter/lwpbackgroundstuff.cxx
1 file changed, 2 insertions(+), 5 deletions(-)



diff --git a/lotuswordpro/source/filter/lwpbackgroundstuff.cxx 
b/lotuswordpro/source/filter/lwpbackgroundstuff.cxx
index d26e0b3..a38d419 100644
--- a/lotuswordpro/source/filter/lwpbackgroundstuff.cxx
+++ b/lotuswordpro/source/filter/lwpbackgroundstuff.cxx
@@ -169,11 +169,8 @@
     XFBGImage* pXFBGImage = new XFBGImage();
     pXFBGImage->SetImageData(pImageBuff, nSize);
 
-    if (pImageBuff)
-    {
-        delete [] pImageBuff;
-        pImageBuff = NULL;
-    }
+    delete [] pImageBuff;
+    pImageBuff = NULL;
 
 
     pXFBGImage->SetRepeate();

-- 
To view, visit https://gerrit.libreoffice.org/1518
To unsubscribe, visit https://gerrit.libreoffice.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I81963001e4737c583764b07bea9abf59a61dead7
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: master
Gerrit-Owner: Ioan Radu <ioan.radu.g@gmail.com>


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.