[Libreoffice-commits] core.git: basic/source

Norbert Thiebaud nthiebaud at gmail.com
Thu Feb 21 23:52:06 PST 2013


 basic/source/classes/image.cxx |    4 ----
 1 file changed, 4 deletions(-)

New commits:
commit 8abb2f4d57b54c42429e64302dd716bdc2b73d79
Author: Norbert Thiebaud <nthiebaud at gmail.com>
Date:   Mon Feb 18 11:51:38 2013 -0600

    coverity#982288 Logically dead code
    
    Change-Id: I4fb90cb00829bc4be7d050521215528de4748d76
    Reviewed-on: https://gerrit.libreoffice.org/2245
    Reviewed-by: Norbert Thiebaud <nthiebaud at gmail.com>
    Tested-by: Norbert Thiebaud <nthiebaud at gmail.com>

diff --git a/basic/source/classes/image.cxx b/basic/source/classes/image.cxx
index cdc2239..6ff0b92 100644
--- a/basic/source/classes/image.cxx
+++ b/basic/source/classes/image.cxx
@@ -415,10 +415,6 @@ void SbiImage::AddString( const OUString& r )
         {
             sal_uInt32 nNewLen = needed + 1024;
             nNewLen &= 0xFFFFFC00;  // trim to 1K border
-            if( nNewLen > 0xFFFFFF00L )
-            {
-                nNewLen = 0xFFFFFF00L;
-            }
             sal_Unicode* p = NULL;
             if( (p = new sal_Unicode[ nNewLen ]) != NULL )
             {


More information about the Libreoffice-commits mailing list