diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2019-08-18 09:18:01 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2019-08-18 10:17:29 +0200 |
commit | a8df5fbaa478fd7f01b2f04a82b4eb63d0dbcc15 (patch) | |
tree | c1f532901061184d634f0ad408b749cc6fb60f0c /unoxml/source/xpath | |
parent | e0826f8e18b5ad8f8743a4aa2fb78bffda2524f8 (diff) |
Simplify code in unoxml about initializations
Change-Id: I7bc1d82d70f26b1cb7289b87a52e1f59fb740817
Reviewed-on: https://gerrit.libreoffice.org/77655
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'unoxml/source/xpath')
-rw-r--r-- | unoxml/source/xpath/xpathapi.cxx | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/unoxml/source/xpath/xpathapi.cxx b/unoxml/source/xpath/xpathapi.cxx index 334cd19f18cd..491be8cab0b7 100644 --- a/unoxml/source/xpath/xpathapi.cxx +++ b/unoxml/source/xpath/xpathapi.cxx @@ -59,25 +59,14 @@ namespace XPath { } - static const char aImplementationName[] = "com.sun.star.comp.xml.xpath.XPathAPI"; - static const char* aSupportedServiceNames[] = { - "com.sun.star.xml.xpath.XPathAPI", - nullptr - }; - OUString CXPathAPI::_getImplementationName() { - return aImplementationName; + return "com.sun.star.comp.xml.xpath.XPathAPI"; } Sequence<OUString> CXPathAPI::_getSupportedServiceNames() { - Sequence<OUString> aSequence; - for (int i=0; aSupportedServiceNames[i]!=nullptr; i++) { - aSequence.realloc(i+1); - aSequence[i] = OUString::createFromAscii(aSupportedServiceNames[i]); - } - return aSequence; + return { "com.sun.star.xml.xpath.XPathAPI" }; } Sequence< OUString > SAL_CALL CXPathAPI::getSupportedServiceNames() |