From 1b329fd5ccc0ff270d776dfd03571da3f4d6f34d Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Thu, 22 Nov 2012 19:48:13 +0100 Subject: get rid of unnecessary LocaleDataWrapper temporary instances Change-Id: I17d9a502565d445b0eab9ef6e9123661850292b7 --- starmath/source/unomodel.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'starmath') diff --git a/starmath/source/unomodel.cxx b/starmath/source/unomodel.cxx index 9e9228888918..96053ed277d2 100644 --- a/starmath/source/unomodel.cxx +++ b/starmath/source/unomodel.cxx @@ -953,8 +953,8 @@ sal_Int32 SAL_CALL SmModel::getRendererCount( static Size lcl_GuessPaperSize() { Size aRes; - LocaleDataWrapper aLocWrp( AllSettings().GetLanguageTag().getLocale() ); - if( MEASURE_METRIC == aLocWrp.getMeasurementSystemEnum() ) + const LocaleDataWrapper& rLocWrp( AllSettings().GetLocaleDataWrapper() ); + if( MEASURE_METRIC == rLocWrp.getMeasurementSystemEnum() ) { // in 100th mm PaperInfo aInfo( PAPER_A4 ); -- cgit