summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorHerbert Dürr <hdu@apache.org>2012-06-15 07:36:25 +0000
committerHerbert Dürr <hdu@apache.org>2012-06-15 07:36:25 +0000
commitdb960511eeb40e88eeb6597b9b593c9a739e873c (patch)
tree5ad57aa1317f827e387c857018b5f8cc6c3bc5f8 /xmloff
parent241c9736944e49308e03b74191524a1b8a5076bb (diff)
#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
Notes
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/style/xmlnumi.cxx2
1 files changed, 1 insertions, 1 deletions
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<beans::PropertyValue> SvxXMLListLevelStyleContext_Impl::GetProperties(
const SvI18NMap *pI18NMap )
{
- sal_Int16 eType;
+ sal_Int16 eType = NumberingType::NUMBER_NONE;
sal_Int32 nCount = 0;
if( bBullet )