From 2e0d1719f285f293c6a4486895ab69b6d0e51f4c Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 20 Dec 2012 13:42:46 +0200 Subject: fdo#46808, Add service factory method to ucb::AnyCompareFactory Change-Id: I18774fabdaf27376898ed661be21a72c6f52410d --- sfx2/source/doc/doctempl.cxx | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'sfx2') diff --git a/sfx2/source/doc/doctempl.cxx b/sfx2/source/doc/doctempl.cxx index b17b76e9e1ec..f1e7e976f02a 100644 --- a/sfx2/source/doc/doctempl.cxx +++ b/sfx2/source/doc/doctempl.cxx @@ -57,7 +57,7 @@ #include #include #include -#include +#include #include #include #include @@ -1625,12 +1625,7 @@ sal_Bool SfxDocTemplate_Impl::Construct( ) uno::Reference< XLocalizable > xLocalizable( mxTemplates, UNO_QUERY ); - Sequence< Any > aCompareArg(1); - *(aCompareArg.getArray()) <<= xLocalizable->getLocale(); - m_rCompareFactory = uno::Reference< XAnyCompareFactory >( - xFactory->createInstanceWithArguments( OUString("com.sun.star.ucb.AnyCompareFactory"), - aCompareArg ), - UNO_QUERY ); + m_rCompareFactory = AnyCompareFactory::createWithLocale(xContext, xLocalizable->getLocale()); uno::Reference < XContent > aRootContent = mxTemplates->getContent(); uno::Reference < XCommandEnvironment > aCmdEnv; -- cgit