summaryrefslogtreecommitdiff
path: root/unoxml/source/dom
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-07-30 17:46:12 +0200
committerStephan Bergmann <sbergman@redhat.com>2019-07-31 12:52:54 +0200
commite76e9e5d7299d88137d57aefe174a84474e2909c (patch)
treebb4eae1aa90e248ed84749ed83a3bf336e62584c /unoxml/source/dom
parent28065fe9bd06617815b27e329a33b0ebb545c48d (diff)
Improved loplugin:stringconstant (now that GCC 7 supports it): unoxml
Change-Id: If4445eabc4216d2fce7a08da85e806408064d7bb Reviewed-on: https://gerrit.libreoffice.org/76630 Tested-by: Jenkins Reviewed-by: Michael Stahl <Michael.Stahl@cib.de>
Diffstat (limited to 'unoxml/source/dom')
-rw-r--r--unoxml/source/dom/cdatasection.cxx2
-rw-r--r--unoxml/source/dom/comment.cxx2
-rw-r--r--unoxml/source/dom/document.cxx2
-rw-r--r--unoxml/source/dom/documentbuilder.cxx2
-rw-r--r--unoxml/source/dom/documentfragment.cxx2
-rw-r--r--unoxml/source/dom/saxbuilder.cxx2
-rw-r--r--unoxml/source/dom/text.cxx2
7 files changed, 7 insertions, 7 deletions
diff --git a/unoxml/source/dom/cdatasection.cxx b/unoxml/source/dom/cdatasection.cxx
index c0cf2d418b3b..47dc773893bc 100644
--- a/unoxml/source/dom/cdatasection.cxx
+++ b/unoxml/source/dom/cdatasection.cxx
@@ -48,7 +48,7 @@ namespace DOM
OUString SAL_CALL CCDATASection::getNodeName()
{
- return OUString( "#cdata-section" );
+ return "#cdata-section";
}
OUString SAL_CALL CCDATASection::getNodeValue()
diff --git a/unoxml/source/dom/comment.cxx b/unoxml/source/dom/comment.cxx
index 179a0f2da5ff..30bcb30aa0f4 100644
--- a/unoxml/source/dom/comment.cxx
+++ b/unoxml/source/dom/comment.cxx
@@ -44,7 +44,7 @@ namespace DOM
OUString SAL_CALL CComment::getNodeName()
{
- return OUString("#comment");
+ return "#comment";
}
OUString SAL_CALL CComment::getNodeValue()
diff --git a/unoxml/source/dom/document.cxx b/unoxml/source/dom/document.cxx
index 4b7d246e867d..e84ff5bdc8d3 100644
--- a/unoxml/source/dom/document.cxx
+++ b/unoxml/source/dom/document.cxx
@@ -906,7 +906,7 @@ namespace DOM
OUString SAL_CALL CDocument::getNodeName()
{
// does not need mutex currently
- return OUString("#document");
+ return "#document";
}
OUString SAL_CALL CDocument::getNodeValue()
diff --git a/unoxml/source/dom/documentbuilder.cxx b/unoxml/source/dom/documentbuilder.cxx
index 5f08a7bc3236..3b5082ae8774 100644
--- a/unoxml/source/dom/documentbuilder.cxx
+++ b/unoxml/source/dom/documentbuilder.cxx
@@ -110,7 +110,7 @@ namespace DOM
OUString CDocumentBuilder::_getImplementationName()
{
- return OUString(aImplementationName);
+ return aImplementationName;
}
Sequence<OUString> CDocumentBuilder::_getSupportedServiceNames()
{
diff --git a/unoxml/source/dom/documentfragment.cxx b/unoxml/source/dom/documentfragment.cxx
index ce94a844ec3a..62c69b4db8e5 100644
--- a/unoxml/source/dom/documentfragment.cxx
+++ b/unoxml/source/dom/documentfragment.cxx
@@ -49,7 +49,7 @@ namespace DOM
OUString SAL_CALL CDocumentFragment::getNodeName()
{
- return OUString("#document-fragment");
+ return "#document-fragment";
}
OUString SAL_CALL CDocumentFragment::getNodeValue()
{
diff --git a/unoxml/source/dom/saxbuilder.cxx b/unoxml/source/dom/saxbuilder.cxx
index 968971f29d2c..5769ad579666 100644
--- a/unoxml/source/dom/saxbuilder.cxx
+++ b/unoxml/source/dom/saxbuilder.cxx
@@ -51,7 +51,7 @@ namespace DOM
OUString CSAXDocumentBuilder::_getImplementationName()
{
- return OUString(aImplementationName);
+ return aImplementationName;
}
Sequence<OUString> CSAXDocumentBuilder::_getSupportedServiceNames()
{
diff --git a/unoxml/source/dom/text.cxx b/unoxml/source/dom/text.cxx
index 10e8e271b749..08db01ba32c4 100644
--- a/unoxml/source/dom/text.cxx
+++ b/unoxml/source/dom/text.cxx
@@ -60,7 +60,7 @@ namespace DOM
OUString SAL_CALL CText::getNodeName()
{
- return OUString("#text");
+ return "#text";
}
Reference< XText > SAL_CALL CText::splitText(sal_Int32 /*offset*/)