summaryrefslogtreecommitdiff
path: root/unoxml/source/dom
diff options
context:
space:
mode:
Diffstat (limited to 'unoxml/source/dom')
-rw-r--r--unoxml/source/dom/documentbuilder.cxx6
-rw-r--r--unoxml/source/dom/documentbuilder.hxx2
-rw-r--r--unoxml/source/dom/saxbuilder.cxx6
-rw-r--r--unoxml/source/dom/saxbuilder.hxx2
4 files changed, 6 insertions, 10 deletions
diff --git a/unoxml/source/dom/documentbuilder.cxx b/unoxml/source/dom/documentbuilder.cxx
index 8d244ab6d6e9..bbb412a32df0 100644
--- a/unoxml/source/dom/documentbuilder.cxx
+++ b/unoxml/source/dom/documentbuilder.cxx
@@ -101,15 +101,15 @@ namespace DOM
return static_cast< XDocumentBuilder* >(new CDocumentBuilder);
}
- const char* CDocumentBuilder::aImplementationName = "com.sun.star.comp.xml.dom.DocumentBuilder";
- const char* CDocumentBuilder::aSupportedServiceNames[] = {
+ static const char aImplementationName[] = "com.sun.star.comp.xml.dom.DocumentBuilder";
+ static const char* aSupportedServiceNames[] = {
"com.sun.star.xml.dom.DocumentBuilder",
nullptr
};
OUString CDocumentBuilder::_getImplementationName()
{
- return OUString::createFromAscii(aImplementationName);
+ return OUString(aImplementationName);
}
Sequence<OUString> CDocumentBuilder::_getSupportedServiceNames()
{
diff --git a/unoxml/source/dom/documentbuilder.hxx b/unoxml/source/dom/documentbuilder.hxx
index 4ef3e1840de1..ca5927161ceb 100644
--- a/unoxml/source/dom/documentbuilder.hxx
+++ b/unoxml/source/dom/documentbuilder.hxx
@@ -60,8 +60,6 @@ namespace DOM
explicit CDocumentBuilder();
// static helpers for service info and component management
- static const char* aImplementationName;
- static const char* aSupportedServiceNames[];
static OUString _getImplementationName();
static css::uno::Sequence< OUString > _getSupportedServiceNames();
static css::uno::Reference< XInterface > _getInstance(
diff --git a/unoxml/source/dom/saxbuilder.cxx b/unoxml/source/dom/saxbuilder.cxx
index 81da91c51073..a6e189b4b475 100644
--- a/unoxml/source/dom/saxbuilder.cxx
+++ b/unoxml/source/dom/saxbuilder.cxx
@@ -38,8 +38,8 @@ namespace DOM
return static_cast< XSAXDocumentBuilder* >(new CSAXDocumentBuilder(rSMgr));
}
- const char* CSAXDocumentBuilder::aImplementationName = "com.sun.star.comp.xml.dom.SAXDocumentBuilder";
- const char* CSAXDocumentBuilder::aSupportedServiceNames[] = {
+ static const char aImplementationName[] = "com.sun.star.comp.xml.dom.SAXDocumentBuilder";
+ static const char* aSupportedServiceNames[] = {
"com.sun.star.xml.dom.SAXDocumentBuilder",
nullptr
};
@@ -51,7 +51,7 @@ namespace DOM
OUString CSAXDocumentBuilder::_getImplementationName()
{
- return OUString::createFromAscii(aImplementationName);
+ return OUString(aImplementationName);
}
Sequence<OUString> CSAXDocumentBuilder::_getSupportedServiceNames()
{
diff --git a/unoxml/source/dom/saxbuilder.hxx b/unoxml/source/dom/saxbuilder.hxx
index 79c8ba0c5ff7..e2279a0c24bb 100644
--- a/unoxml/source/dom/saxbuilder.hxx
+++ b/unoxml/source/dom/saxbuilder.hxx
@@ -61,8 +61,6 @@ namespace DOM
public:
// static helpers for service info and component management
- static const char* aImplementationName;
- static const char* aSupportedServiceNames[];
static OUString _getImplementationName();
static css::uno::Sequence< OUString > _getSupportedServiceNames();
static css::uno::Reference< XInterface > _getInstance(const css::uno::Reference< css::lang::XMultiServiceFactory >& rSMgr);