[Libreoffice-commits] .: svx/source

Stephan Bergmann sbergmann at kemper.freedesktop.org
Fri Jun 15 07:24:03 PDT 2012


 svx/source/unodraw/unoshape.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit c2c37de076acd085e7c095a3f09aa59174ef4042
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Fri Jun 15 16:23:50 2012 +0200

    Avoid bogus "may be used uninitialized" warning
    
    Change-Id: Ib763b8ab1e728d400859a7abb355bba182b28684

diff --git a/svx/source/unodraw/unoshape.cxx b/svx/source/unodraw/unoshape.cxx
index 4c21d47..28b00a7 100644
--- a/svx/source/unodraw/unoshape.cxx
+++ b/svx/source/unodraw/unoshape.cxx
@@ -4306,7 +4306,7 @@ void SvxItemPropertySet_setPropertyValue( const SvxItemPropertySet& rPropSet, co
     bool bDontConvertNegativeValues = ( pMap->nWID == XATTR_FILLBMP_SIZEX || pMap->nWID == XATTR_FILLBMP_SIZEY );
     if( pMap->nWID == EE_PARA_LRSPACE ) // n#757419 Don't import negative values
     {
-        sal_Int32 nVal;
+        sal_Int32 nVal = sal_Int32();
         if( (aVal >>= nVal) && nVal < 0 )
             aVal <<= ( sal_Int32 ) 0;
     }


More information about the Libreoffice-commits mailing list