diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2012-10-31 18:24:08 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-10-31 18:27:36 +0100 |
commit | c936fcb0f3e1048e3b7085b1564f8e1f24a44f16 (patch) | |
tree | df000d128097bf845ed3379d4cd1899e6bc87466 /ucb | |
parent | 56d7afee15ccd57b6c9ed31ad4bd071a6e66f075 (diff) |
Some more configuration::theDefaultProvider simplifications
Change-Id: I91ded7801f4959f2dac7b5b3e4c8d1f3929f4ed9
Diffstat (limited to 'ucb')
-rw-r--r-- | ucb/source/core/ucbstore.cxx | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/ucb/source/core/ucbstore.cxx b/ucb/source/core/ucbstore.cxx index 61a40c3bc474..6fdffba75003 100644 --- a/ucb/source/core/ucbstore.cxx +++ b/ucb/source/core/ucbstore.cxx @@ -31,13 +31,16 @@ #include <cppuhelper/interfacecontainer.hxx> #include <com/sun/star/beans/PropertyAttribute.hpp> #include <com/sun/star/beans/PropertySetInfoChange.hpp> +#include <com/sun/star/configuration/theDefaultProvider.hpp> #include <com/sun/star/container/XHierarchicalNameAccess.hpp> #include <com/sun/star/container/XNameContainer.hpp> #include <com/sun/star/container/XNameReplace.hpp> #include <com/sun/star/util/XChangesBatch.hpp> +#include <comphelper/processfactory.hxx> #include "ucbstore.hxx" using namespace com::sun::star::beans; +using namespace com::sun::star::configuration; using namespace com::sun::star::container; using namespace com::sun::star::lang; using namespace com::sun::star::ucb; @@ -1037,12 +1040,8 @@ Reference< XMultiServiceFactory > PropertySetRegistry::getConfigProvider() try { m_pImpl->m_xConfigProvider - = Reference< XMultiServiceFactory >( - m_xSMgr->createInstance( - OUString( - "com.sun.star.configuration." - "ConfigurationProvider" ) ), - UNO_QUERY_THROW ); + = theDefaultProvider::get( + comphelper::getComponentContext( m_xSMgr ) ); } catch (const Exception&) { |