diff options
author | Noel Grandin <noel@peralex.com> | 2013-01-30 12:01:04 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-02-11 08:02:14 +0200 |
commit | f53517a5b08f9dddd61f5f0aa697222529d15e28 (patch) | |
tree | 3ac63c826351ef87ae5082bb98defa0a15890993 /desktop/source/migration | |
parent | fa3c9a9072ae05ae6d03014eb55ad5f7d895d1fe (diff) |
fdo#46808, convert xml::xpath::XPathAPI to new-style service
Change-Id: I54bb0eb08d687e7d54c42601c826c580a7a17ebb
Diffstat (limited to 'desktop/source/migration')
-rw-r--r-- | desktop/source/migration/services/oo3extensionmigration.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/desktop/source/migration/services/oo3extensionmigration.cxx b/desktop/source/migration/services/oo3extensionmigration.cxx index 023c4800cca4..a8f1f419cf20 100644 --- a/desktop/source/migration/services/oo3extensionmigration.cxx +++ b/desktop/source/migration/services/oo3extensionmigration.cxx @@ -36,7 +36,7 @@ #include <com/sun/star/ucb/TransferInfo.hpp> #include <com/sun/star/ucb/NameClash.hpp> #include <com/sun/star/ucb/XCommandEnvironment.hpp> -#include <com/sun/star/xml/xpath/XXPathAPI.hpp> +#include <com/sun/star/xml/xpath/XPathAPI.hpp> #include <com/sun/star/xml/dom/DocumentBuilder.hpp> #include <com/sun/star/beans/NamedValue.hpp> #include <com/sun/star/deployment/ExtensionManager.hpp> @@ -228,10 +228,7 @@ bool OO3ExtensionMigration::scanDescriptionXml( const ::rtl::OUString& sDescript uno::Reference< xml::dom::XElement > xRoot = xDoc->getDocumentElement(); if ( xRoot.is() && xRoot->getTagName() == "description" ) { - uno::Reference< xml::xpath::XXPathAPI > xPath( - m_ctx->getServiceManager()->createInstanceWithContext( "com.sun.star.xml.xpath.XPathAPI", - m_ctx), - uno::UNO_QUERY); + uno::Reference< xml::xpath::XXPathAPI > xPath = xml::xpath::XPathAPI::create(m_ctx); xPath->registerNS("desc", xRoot->getNamespaceURI()); xPath->registerNS("xlink", "http://www.w3.org/1999/xlink"); |