summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2012-11-05 11:28:43 +0200
committerStephan Bergmann <sbergman@redhat.com>2012-11-15 08:28:44 +0100
commitd2f6a87ac7adb3f60f7eae7c5a8f8a9076b7a75c (patch)
tree0bcc19623fa6cda27b78df47c54192bd3e73ef41 /starmath
parent5837402fb1daa437d9a1a37edc9ede57319944f1 (diff)
fdo#46808, use service constructor for i18n::NumberFormatMapper
Also create a utility constructor for LocaleDataWrapper, which simplifies many of the calling sites. Change-Id: Ic8510b51c4201fa17fc0620e18d3e258e43636ba
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/unomodel.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/starmath/source/unomodel.cxx b/starmath/source/unomodel.cxx
index 7bfce092c64a..efa322573de9 100644
--- a/starmath/source/unomodel.cxx
+++ b/starmath/source/unomodel.cxx
@@ -953,8 +953,7 @@ sal_Int32 SAL_CALL SmModel::getRendererCount(
static Size lcl_GuessPaperSize()
{
Size aRes;
- Reference< XMultiServiceFactory > xMgr( getProcessServiceFactory() );
- LocaleDataWrapper aLocWrp( xMgr, AllSettings().GetLocale() );
+ LocaleDataWrapper aLocWrp( AllSettings().GetLocale() );
if( MEASURE_METRIC == aLocWrp.getMeasurementSystemEnum() )
{
// in 100th mm