From db960511eeb40e88eeb6597b9b593c9a739e873c Mon Sep 17 00:00:00 2001 From: Herbert Dürr Date: Fri, 15 Jun 2012 07:36:25 +0000 Subject: #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 --- xmloff/source/style/xmlnumi.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xmloff') diff --git a/xmloff/source/style/xmlnumi.cxx b/xmloff/source/style/xmlnumi.cxx index 433a596dfc12..794ce86ca259 100644 --- a/xmloff/source/style/xmlnumi.cxx +++ b/xmloff/source/style/xmlnumi.cxx @@ -465,7 +465,7 @@ SvXMLImportContext *SvxXMLListLevelStyleContext_Impl::CreateChildContext( Sequence SvxXMLListLevelStyleContext_Impl::GetProperties( const SvI18NMap *pI18NMap ) { - sal_Int16 eType; + sal_Int16 eType = NumberingType::NUMBER_NONE; sal_Int32 nCount = 0; if( bBullet ) -- cgit v1.2.3