diff options
-rw-r--r-- | avmedia/source/framework/mediaitem.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/avmedia/source/framework/mediaitem.cxx b/avmedia/source/framework/mediaitem.cxx index 591d5dba909f..d3e229db8a68 100644 --- a/avmedia/source/framework/mediaitem.cxx +++ b/avmedia/source/framework/mediaitem.cxx @@ -36,6 +36,7 @@ #include <com/sun/star/embed/XTransactedObject.hpp> #include <com/sun/star/document/XStorageBasedDocument.hpp> #include <com/sun/star/ucb/XCommandEnvironment.hpp> +#include <com/sun/star/uri/UriReferenceFactory.hpp> #include <com/sun/star/uri/XUriReference.hpp> #include <com/sun/star/uri/XUriReferenceFactory.hpp> @@ -373,10 +374,8 @@ void MediaItem::setZoom( ::com::sun::star::media::ZoomLevel eZoom ) static OUString lcl_GetFilename(OUString const& rSourceURL) { uno::Reference<uri::XUriReferenceFactory> const xUriFactory( - ::comphelper::createProcessComponent( - "com.sun.star.uri.UriReferenceFactory"), - uno::UNO_QUERY_THROW); - + uri::UriReferenceFactory::create( + comphelper::getProcessComponentContext())); uno::Reference<uri::XUriReference> const xSourceURI( xUriFactory->parse(rSourceURL), uno::UNO_SET_THROW); |