[Libreoffice-commits] .: lotuswordpro/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Sun Dec 30 15:32:44 PST 2012


 lotuswordpro/source/filter/lwpbackgroundstuff.cxx |    7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

New commits:
commit 3b1da9e650db388baa6d649219e2a0e45b58f062
Author: Radu Ioan <ioan.radu.g at gmail.com>
Date:   Mon Dec 31 01:27:47 2012 +0200

    fdo#39440 - cppcheck cleanliness
    
    removed some cppcheck warning
    
    Change-Id: I81963001e4737c583764b07bea9abf59a61dead7
    Reviewed-on: https://gerrit.libreoffice.org/1518
    Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
    Tested-by: Markus Mohrhard <markus.mohrhard at googlemail.com>

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* LwpBackgroundStuff::GetFillPattern()
     XFBGImage* pXFBGImage = new XFBGImage();
     pXFBGImage->SetImageData(pImageBuff, nSize);
 
-    if (pImageBuff)
-    {
-        delete [] pImageBuff;
-        pImageBuff = NULL;
-    }
+    delete [] pImageBuff;
+    pImageBuff = NULL;
 
 
     pXFBGImage->SetRepeate();


More information about the Libreoffice-commits mailing list