summaryrefslogtreecommitdiff
path: root/xmloff/source/forms/propertyimport.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-06-13 17:53:15 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-06-13 17:54:37 +0200
commitc21979a3279953ec28fc3d6e379b9a3ba98c4fd3 (patch)
tree69cd0929d5d6acfe96af2cdd77e2d4ab1e4c6ba0 /xmloff/source/forms/propertyimport.cxx
parentb2d0d7172a7fb3db7370b9dbe5733ff7c9689a2e (diff)
loplugin:staticcall
Change-Id: I7691a6d267ea572e3fdd028c1cfae7b721a76da7
Diffstat (limited to 'xmloff/source/forms/propertyimport.cxx')
-rw-r--r--xmloff/source/forms/propertyimport.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/xmloff/source/forms/propertyimport.cxx b/xmloff/source/forms/propertyimport.cxx
index c992b6f52073..584092878289 100644
--- a/xmloff/source/forms/propertyimport.cxx
+++ b/xmloff/source/forms/propertyimport.cxx
@@ -83,7 +83,7 @@ namespace
}
}
-Any PropertyConversion::convertString( SvXMLImport& _rImporter, const ::com::sun::star::uno::Type& _rExpectedType,
+Any PropertyConversion::convertString( const ::com::sun::star::uno::Type& _rExpectedType,
const OUString& _rReadCharacters, const SvXMLEnumMapEntry* _pEnumMap, const bool _bInvertBoolean )
{
Any aReturn;
@@ -131,7 +131,7 @@ Any PropertyConversion::convertString( SvXMLImport& _rImporter, const ::com::sun
#if OSL_DEBUG_LEVEL > 0
bool bSuccess =
#endif
- _rImporter.GetMM100UnitConverter().convertEnum(nEnumValue, _rReadCharacters, _pEnumMap);
+ SvXMLUnitConverter::convertEnum(nEnumValue, _rReadCharacters, _pEnumMap);
OSL_ENSURE(bSuccess, "PropertyConversion::convertString: could not convert to an enum value!");
if (bEnumAsInt)
if (TypeClass_SHORT == _rExpectedType.getTypeClass())
@@ -336,7 +336,7 @@ bool OPropertyImport::handleAttribute(sal_uInt16 /*_nNamespaceKey*/, const OUStr
aNewValue.Name = pProperty->sPropertyName;
// convert the value string into the target type
- aNewValue.Value = PropertyConversion::convertString(m_rContext.getGlobalContext(), pProperty->aPropertyType, _rValue, pProperty->pEnumMap, pProperty->bInverseSemantics);
+ aNewValue.Value = PropertyConversion::convertString(pProperty->aPropertyType, _rValue, pProperty->pEnumMap, pProperty->bInverseSemantics);
implPushBackPropertyValue( aNewValue );
return true;
}
@@ -463,7 +463,7 @@ void OSinglePropertyContext::StartElement(const Reference< XAttributeList >& _rx
else
{
aPropValue.Value =
- PropertyConversion::convertString(GetImport(), aPropType,
+ PropertyConversion::convertString(aPropType,
sValue);
}
@@ -527,7 +527,7 @@ void OListPropertyContext::EndElement()
++values, ++pListElement
)
{
- *pListElement = PropertyConversion::convertString( GetImport(), aType, *values );
+ *pListElement = PropertyConversion::convertString( aType, *values );
}
PropertyValue aSequenceValue;