diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-01-08 09:10:29 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-01-08 09:10:29 +0100 |
commit | 382b013275f0dd81d6bbf299782f59d2735c5beb (patch) | |
tree | 6fcfccba42ff0ced32342b5c2720dfaf38da19eb /nlpsolver/src | |
parent | b45e8153b28b7447a922129d3e3a182315c8b337 (diff) |
Some ConfigurationProvider -> theDefaultProvider simplifications
Change-Id: I7c25cd94f8a1ca339f7423c26f21f13c7a68906d
Diffstat (limited to 'nlpsolver/src')
-rw-r--r-- | nlpsolver/src/com/sun/star/comp/Calc/NLPSolver/ResourceManager.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nlpsolver/src/com/sun/star/comp/Calc/NLPSolver/ResourceManager.java b/nlpsolver/src/com/sun/star/comp/Calc/NLPSolver/ResourceManager.java index 6780826a43ff..1484173ff280 100644 --- a/nlpsolver/src/com/sun/star/comp/Calc/NLPSolver/ResourceManager.java +++ b/nlpsolver/src/com/sun/star/comp/Calc/NLPSolver/ResourceManager.java @@ -30,6 +30,7 @@ package com.sun.star.comp.Calc.NLPSolver; import com.sun.star.beans.PropertyState; import com.sun.star.beans.PropertyValue; import com.sun.star.beans.XPropertySet; +import com.sun.star.configuration.theDefaultProvider; import com.sun.star.deployment.PackageInformationProvider; import com.sun.star.deployment.XPackageInformationProvider; import com.sun.star.lang.Locale; @@ -60,8 +61,7 @@ public class ResourceManager { m_resourceBaseUrl = m_oxtRoot + relativeResourceBaseUrl; try { - XMultiServiceFactory xConfig = UnoRuntime.queryInterface(XMultiServiceFactory.class, - m_context.getServiceManager().createInstanceWithContext("com.sun.star.configuration.ConfigurationProvider", m_context)); + XMultiServiceFactory xConfig = theDefaultProvider.get(m_context); Object[] args = new Object[1]; args[0] = new PropertyValue("nodepath", 0, "/org.openoffice.Setup/L10N", PropertyState.DIRECT_VALUE); @@ -95,4 +95,4 @@ public class ResourceManager { } } -}
\ No newline at end of file +} |