Kaydet (Commit) 2b938a36 authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:singlevalfields in unoxml

Change-Id: I340be161aeb343ccc01b86bcb807e4441025419e
Reviewed-on: https://gerrit.libreoffice.org/64595
Tested-by: Jenkins
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst c0e4ac9a
...@@ -101,15 +101,15 @@ namespace DOM ...@@ -101,15 +101,15 @@ namespace DOM
return static_cast< XDocumentBuilder* >(new CDocumentBuilder); return static_cast< XDocumentBuilder* >(new CDocumentBuilder);
} }
const char* CDocumentBuilder::aImplementationName = "com.sun.star.comp.xml.dom.DocumentBuilder"; static const char aImplementationName[] = "com.sun.star.comp.xml.dom.DocumentBuilder";
const char* CDocumentBuilder::aSupportedServiceNames[] = { static const char* aSupportedServiceNames[] = {
"com.sun.star.xml.dom.DocumentBuilder", "com.sun.star.xml.dom.DocumentBuilder",
nullptr nullptr
}; };
OUString CDocumentBuilder::_getImplementationName() OUString CDocumentBuilder::_getImplementationName()
{ {
return OUString::createFromAscii(aImplementationName); return OUString(aImplementationName);
} }
Sequence<OUString> CDocumentBuilder::_getSupportedServiceNames() Sequence<OUString> CDocumentBuilder::_getSupportedServiceNames()
{ {
......
...@@ -60,8 +60,6 @@ namespace DOM ...@@ -60,8 +60,6 @@ namespace DOM
explicit CDocumentBuilder(); explicit CDocumentBuilder();
// static helpers for service info and component management // static helpers for service info and component management
static const char* aImplementationName;
static const char* aSupportedServiceNames[];
static OUString _getImplementationName(); static OUString _getImplementationName();
static css::uno::Sequence< OUString > _getSupportedServiceNames(); static css::uno::Sequence< OUString > _getSupportedServiceNames();
static css::uno::Reference< XInterface > _getInstance( static css::uno::Reference< XInterface > _getInstance(
......
...@@ -38,8 +38,8 @@ namespace DOM ...@@ -38,8 +38,8 @@ namespace DOM
return static_cast< XSAXDocumentBuilder* >(new CSAXDocumentBuilder(rSMgr)); return static_cast< XSAXDocumentBuilder* >(new CSAXDocumentBuilder(rSMgr));
} }
const char* CSAXDocumentBuilder::aImplementationName = "com.sun.star.comp.xml.dom.SAXDocumentBuilder"; static const char aImplementationName[] = "com.sun.star.comp.xml.dom.SAXDocumentBuilder";
const char* CSAXDocumentBuilder::aSupportedServiceNames[] = { static const char* aSupportedServiceNames[] = {
"com.sun.star.xml.dom.SAXDocumentBuilder", "com.sun.star.xml.dom.SAXDocumentBuilder",
nullptr nullptr
}; };
...@@ -51,7 +51,7 @@ namespace DOM ...@@ -51,7 +51,7 @@ namespace DOM
OUString CSAXDocumentBuilder::_getImplementationName() OUString CSAXDocumentBuilder::_getImplementationName()
{ {
return OUString::createFromAscii(aImplementationName); return OUString(aImplementationName);
} }
Sequence<OUString> CSAXDocumentBuilder::_getSupportedServiceNames() Sequence<OUString> CSAXDocumentBuilder::_getSupportedServiceNames()
{ {
......
...@@ -61,8 +61,6 @@ namespace DOM ...@@ -61,8 +61,6 @@ namespace DOM
public: public:
// static helpers for service info and component management // static helpers for service info and component management
static const char* aImplementationName;
static const char* aSupportedServiceNames[];
static OUString _getImplementationName(); static OUString _getImplementationName();
static css::uno::Sequence< OUString > _getSupportedServiceNames(); static css::uno::Sequence< OUString > _getSupportedServiceNames();
static css::uno::Reference< XInterface > _getInstance(const css::uno::Reference< css::lang::XMultiServiceFactory >& rSMgr); static css::uno::Reference< XInterface > _getInstance(const css::uno::Reference< css::lang::XMultiServiceFactory >& rSMgr);
......
...@@ -58,15 +58,15 @@ namespace XPath ...@@ -58,15 +58,15 @@ namespace XPath
{ {
} }
const char* CXPathAPI::aImplementationName = "com.sun.star.comp.xml.xpath.XPathAPI"; static const char aImplementationName[] = "com.sun.star.comp.xml.xpath.XPathAPI";
const char* CXPathAPI::aSupportedServiceNames[] = { static const char* aSupportedServiceNames[] = {
"com.sun.star.xml.xpath.XPathAPI", "com.sun.star.xml.xpath.XPathAPI",
nullptr nullptr
}; };
OUString CXPathAPI::_getImplementationName() OUString CXPathAPI::_getImplementationName()
{ {
return OUString::createFromAscii(aImplementationName); return OUString(aImplementationName);
} }
Sequence<OUString> CXPathAPI::_getSupportedServiceNames() Sequence<OUString> CXPathAPI::_getSupportedServiceNames()
......
...@@ -70,8 +70,6 @@ namespace XPath ...@@ -70,8 +70,6 @@ namespace XPath
rSMgr); rSMgr);
// static helpers for service info and component management // static helpers for service info and component management
static const char* aImplementationName;
static const char* aSupportedServiceNames[];
static OUString _getImplementationName(); static OUString _getImplementationName();
static css::uno::Sequence< OUString > _getSupportedServiceNames(); static css::uno::Sequence< OUString > _getSupportedServiceNames();
static css::uno::Reference< XInterface > _getInstance( static css::uno::Reference< XInterface > _getInstance(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment