incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From h..@apache.org
Subject svn commit: r1350531 - /incubator/ooo/trunk/main/xmloff/source/style/xmlnumi.cxx
Date Fri, 15 Jun 2012 08:36:25 GMT
Author: hdu
Date: Fri Jun 15 08:36:25 2012
New Revision: 1350531

URL: http://svn.apache.org/viewvc?rev=1350531&view=rev
Log:
#c441041# make sure numbering type is always intialized

Though eType's validity is mostly tracked with nCount being non-zero
this is not so for the case (!bImage && bHasColor)
Initializing eType properly solves all cases for good, gets rid of the
subtle validity semantics and shuts up the compiler+testtool warning

Modified:
    incubator/ooo/trunk/main/xmloff/source/style/xmlnumi.cxx

Modified: incubator/ooo/trunk/main/xmloff/source/style/xmlnumi.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/xmloff/source/style/xmlnumi.cxx?rev=1350531&r1=1350530&r2=1350531&view=diff
==============================================================================
--- incubator/ooo/trunk/main/xmloff/source/style/xmlnumi.cxx (original)
+++ incubator/ooo/trunk/main/xmloff/source/style/xmlnumi.cxx Fri Jun 15 08:36:25 2012
@@ -465,7 +465,7 @@ SvXMLImportContext *SvxXMLListLevelStyle
 Sequence<beans::PropertyValue> SvxXMLListLevelStyleContext_Impl::GetProperties(
 		const SvI18NMap *pI18NMap )
 {
-	sal_Int16 eType;
+	sal_Int16 eType = NumberingType::NUMBER_NONE;
 
     sal_Int32 nCount = 0;
 	if( bBullet )



Mime
View raw message