[Libreoffice-commits] core.git: vcl/headless

Julien Nabet serval2412 at yahoo.fr
Sun Jan 31 01:54:25 PST 2016


 vcl/headless/svpbmp.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 24236beda2baed7ef967d9806ec1efb1985691fd
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Sun Jan 31 10:50:39 2016 +0100

    cppcheck: fix redundantCondition
    
    Change-Id: I838a34d6639de75ad08ef29937447936006e53ca

diff --git a/vcl/headless/svpbmp.cxx b/vcl/headless/svpbmp.cxx
index 59d5964..3f59cdd 100644
--- a/vcl/headless/svpbmp.cxx
+++ b/vcl/headless/svpbmp.cxx
@@ -178,7 +178,7 @@ bool SvpSalBitmap::Create(const SalBitmap& rBmp)
         }
     }
 
-    return !rSalBmp.mpDIB || (rSalBmp.mpDIB && mpDIB != nullptr);
+    return !rSalBmp.mpDIB || (mpDIB != nullptr);
 }
 
 bool SvpSalBitmap::Create( const SalBitmap& /*rSalBmp*/,


More information about the Libreoffice-commits mailing list