summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-01-10 16:40:27 +0200
committerNoel Grandin <noel@peralex.com>2013-01-28 08:25:24 +0200
commitf95a7c2c6d5c2158de12bb3ca6fd94b139e33c62 (patch)
tree85f09e15fd9954a84f55e561cb174fe0450ea99f /chart2
parentb772eb0c728a06bdf72866ef61f800bbf7ec15a9 (diff)
fdo#46808, Convert SvNumberFormatter to use XComponentContext
Change-Id: If4e8312dae6bc5eb8bb7655cf250f06ab37b7e5c
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/model/main/ChartModel.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/chart2/source/model/main/ChartModel.cxx b/chart2/source/model/main/ChartModel.cxx
index 053bf079df4a..0564adde45e1 100644
--- a/chart2/source/model/main/ChartModel.cxx
+++ b/chart2/source/model/main/ChartModel.cxx
@@ -1272,8 +1272,7 @@ Reference< util::XNumberFormatsSupplier > ChartModel::impl_getNumberFormatsSuppl
{
if( !m_xOwnNumberFormatsSupplier.is() )
{
- Reference< lang::XMultiServiceFactory > xFactory( m_xContext->getServiceManager(), uno::UNO_QUERY );
- m_apSvNumberFormatter.reset( new SvNumberFormatter( xFactory, LANGUAGE_SYSTEM ) );
+ m_apSvNumberFormatter.reset( new SvNumberFormatter( m_xContext, LANGUAGE_SYSTEM ) );
m_xOwnNumberFormatsSupplier = new SvNumberFormatsSupplierObj( m_apSvNumberFormatter.get() );
//pOwnNumberFormatter->ChangeStandardPrec( 15 ); todo?
}