diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-07-30 17:46:12 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-07-31 12:52:54 +0200 |
commit | e76e9e5d7299d88137d57aefe174a84474e2909c (patch) | |
tree | bb4eae1aa90e248ed84749ed83a3bf336e62584c /unoxml/source | |
parent | 28065fe9bd06617815b27e329a33b0ebb545c48d (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')
-rw-r--r-- | unoxml/source/dom/cdatasection.cxx | 2 | ||||
-rw-r--r-- | unoxml/source/dom/comment.cxx | 2 | ||||
-rw-r--r-- | unoxml/source/dom/document.cxx | 2 | ||||
-rw-r--r-- | unoxml/source/dom/documentbuilder.cxx | 2 | ||||
-rw-r--r-- | unoxml/source/dom/documentfragment.cxx | 2 | ||||
-rw-r--r-- | unoxml/source/dom/saxbuilder.cxx | 2 | ||||
-rw-r--r-- | unoxml/source/dom/text.cxx | 2 | ||||
-rw-r--r-- | unoxml/source/rdf/CBlankNode.cxx | 2 | ||||
-rw-r--r-- | unoxml/source/rdf/CLiteral.cxx | 2 | ||||
-rw-r--r-- | unoxml/source/rdf/CURI.cxx | 4 | ||||
-rw-r--r-- | unoxml/source/rdf/librdf_repository.cxx | 2 | ||||
-rw-r--r-- | unoxml/source/xpath/xpathapi.cxx | 2 |
12 files changed, 13 insertions, 13 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*/) diff --git a/unoxml/source/rdf/CBlankNode.cxx b/unoxml/source/rdf/CBlankNode.cxx index f5cd28801d0c..44d0017bbe44 100644 --- a/unoxml/source/rdf/CBlankNode.cxx +++ b/unoxml/source/rdf/CBlankNode.cxx @@ -113,7 +113,7 @@ OUString SAL_CALL CBlankNode::getStringValue() namespace comp_CBlankNode { OUString _getImplementationName() { - return OUString( "CBlankNode"); + return "CBlankNode"; } css::uno::Sequence< OUString > _getSupportedServiceNames() diff --git a/unoxml/source/rdf/CLiteral.cxx b/unoxml/source/rdf/CLiteral.cxx index 214989495741..e0aa7f1481a8 100644 --- a/unoxml/source/rdf/CLiteral.cxx +++ b/unoxml/source/rdf/CLiteral.cxx @@ -171,7 +171,7 @@ css::uno::Reference< css::rdf::XURI > SAL_CALL CLiteral::getDatatype() namespace comp_CLiteral { OUString _getImplementationName() { - return OUString( "CLiteral"); + return "CLiteral"; } css::uno::Sequence< OUString > _getSupportedServiceNames() diff --git a/unoxml/source/rdf/CURI.cxx b/unoxml/source/rdf/CURI.cxx index 971303beb92f..cef43fa22488 100644 --- a/unoxml/source/rdf/CURI.cxx +++ b/unoxml/source/rdf/CURI.cxx @@ -794,8 +794,8 @@ OUString SAL_CALL CURI::getLocalName() namespace comp_CURI { OUString _getImplementationName() { - return OUString( - "CURI"); + return + "CURI"; } css::uno::Sequence< OUString > _getSupportedServiceNames() diff --git a/unoxml/source/rdf/librdf_repository.cxx b/unoxml/source/rdf/librdf_repository.cxx index 4e7b8382b5a6..eb15843ef25b 100644 --- a/unoxml/source/rdf/librdf_repository.cxx +++ b/unoxml/source/rdf/librdf_repository.cxx @@ -2465,7 +2465,7 @@ librdf_TypeConverter::convertToStatement(librdf_statement* i_pStmt, namespace comp_librdf_Repository { OUString _getImplementationName() { - return OUString("librdf_Repository"); + return "librdf_Repository"; } uno::Sequence< OUString > _getSupportedServiceNames() diff --git a/unoxml/source/xpath/xpathapi.cxx b/unoxml/source/xpath/xpathapi.cxx index 874f4e6cd114..334cd19f18cd 100644 --- a/unoxml/source/xpath/xpathapi.cxx +++ b/unoxml/source/xpath/xpathapi.cxx @@ -67,7 +67,7 @@ namespace XPath OUString CXPathAPI::_getImplementationName() { - return OUString(aImplementationName); + return aImplementationName; } Sequence<OUString> CXPathAPI::_getSupportedServiceNames() |