summaryrefslogtreecommitdiffstats
path: root/scripting/source/provider/URIHelper.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'scripting/source/provider/URIHelper.cxx')
-rw-r--r--scripting/source/provider/URIHelper.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/scripting/source/provider/URIHelper.cxx b/scripting/source/provider/URIHelper.cxx
index 7ef545fe6c2b..ec7ba77551ac 100644
--- a/scripting/source/provider/URIHelper.cxx
+++ b/scripting/source/provider/URIHelper.cxx
@@ -19,6 +19,7 @@
#include <com/sun/star/uri/XVndSunStarScriptUrl.hpp>
+#include <com/sun/star/uri/UriReferenceFactory.hpp>
#include <rtl/ustrbuf.hxx>
#include "URIHelper.hxx"
@@ -67,11 +68,7 @@ ScriptingFrameworkURIHelper::ScriptingFrameworkURIHelper(
try
{
- m_xUriReferenceFactory = uno::Reference< uri::XUriReferenceFactory >(
- xContext->getServiceManager()->createInstanceWithContext(
- OUString(
- "com.sun.star.uri.UriReferenceFactory"),
- xContext ), uno::UNO_QUERY_THROW );
+ m_xUriReferenceFactory = uri::UriReferenceFactory::create( xContext );
}
catch (uno::Exception&)
{