summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2012-12-20 13:42:46 +0200
committerNoel Grandin <noel@peralex.com>2013-01-09 08:08:12 +0200
commit2e0d1719f285f293c6a4486895ab69b6d0e51f4c (patch)
treea711f11ecc927a2bb4cf7532b399299187137a5b /sfx2
parent6cc2ceadbbb0d18688559ef745912ef86cd29add (diff)
fdo#46808, Add service factory method to ucb::AnyCompareFactory
Change-Id: I18774fabdaf27376898ed661be21a72c6f52410d
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/doc/doctempl.cxx9
1 files changed, 2 insertions, 7 deletions
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 <com/sun/star/ucb/XCommandProcessor.hpp>
#include <com/sun/star/ucb/XContent.hpp>
#include <com/sun/star/ucb/XContentAccess.hpp>
-#include <com/sun/star/ucb/XAnyCompareFactory.hpp>
+#include <com/sun/star/ucb/AnyCompareFactory.hpp>
#include <com/sun/star/ucb/XAnyCompare.hpp>
#include <com/sun/star/ucb/NumberedSortingInfo.hpp>
#include <com/sun/star/embed/ElementModes.hpp>
@@ -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;