summaryrefslogtreecommitdiff
path: root/xmloff/source/draw/ximpcustomshape.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xmloff/source/draw/ximpcustomshape.cxx')
-rw-r--r--xmloff/source/draw/ximpcustomshape.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/xmloff/source/draw/ximpcustomshape.cxx b/xmloff/source/draw/ximpcustomshape.cxx
index fbb5822c919e..68eba5a5bf62 100644
--- a/xmloff/source/draw/ximpcustomshape.cxx
+++ b/xmloff/source/draw/ximpcustomshape.cxx
@@ -67,7 +67,7 @@ XMLEnhancedCustomShapeContext::XMLEnhancedCustomShapeContext( SvXMLImport& rImpo
{
}
-const SvXMLEnumMapEntry aXML_GluePointEnumMap[] =
+const SvXMLEnumMapEntry<sal_uInt16> aXML_GluePointEnumMap[] =
{
{ XML_NONE, 0 },
{ XML_SEGMENTS, 1 },
@@ -123,17 +123,17 @@ void GetString( std::vector< css::beans::PropertyValue >& rDest,
rDest.push_back( aProp );
}
+template<typename EnumT>
void GetEnum( std::vector< css::beans::PropertyValue >& rDest,
const OUString& rValue, const EnhancedCustomShapeTokenEnum eDestProp,
- const SvXMLEnumMapEntry& rMap )
+ const SvXMLEnumMapEntry<EnumT>& rMap )
{
- sal_uInt16 eKind;
+ EnumT eKind;
if( SvXMLUnitConverter::convertEnum( eKind, rValue, &rMap ) )
{
- sal_Int16 nEnum = (sal_Int16)eKind;
beans::PropertyValue aProp;
aProp.Name = EASGet( eDestProp );
- aProp.Value <<= nEnum;
+ aProp.Value <<= static_cast<sal_Int16>(eKind);
rDest.push_back( aProp );
}
}