diff options
author | Eike Rathke <erack@redhat.com> | 2012-11-22 19:48:13 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2012-11-22 19:50:20 +0100 |
commit | 1b329fd5ccc0ff270d776dfd03571da3f4d6f34d (patch) | |
tree | 160192cce8a16201503843650491f05b9b15a844 /starmath | |
parent | 677f13f0e2567bcf667b016ef5e173766cc89cbf (diff) |
get rid of unnecessary LocaleDataWrapper temporary instances
Change-Id: I17d9a502565d445b0eab9ef6e9123661850292b7
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/unomodel.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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 ); |