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>
This commit is contained in:
Stephan Bergmann
2019-07-30 17:46:12 +02:00
parent 28065fe9bd
commit e76e9e5d72
12 changed files with 13 additions and 13 deletions

View File

@@ -48,7 +48,7 @@ namespace DOM
OUString SAL_CALL CCDATASection::getNodeName() OUString SAL_CALL CCDATASection::getNodeName()
{ {
return OUString( "#cdata-section" ); return "#cdata-section";
} }
OUString SAL_CALL CCDATASection::getNodeValue() OUString SAL_CALL CCDATASection::getNodeValue()

View File

@@ -44,7 +44,7 @@ namespace DOM
OUString SAL_CALL CComment::getNodeName() OUString SAL_CALL CComment::getNodeName()
{ {
return OUString("#comment"); return "#comment";
} }
OUString SAL_CALL CComment::getNodeValue() OUString SAL_CALL CComment::getNodeValue()

View File

@@ -906,7 +906,7 @@ namespace DOM
OUString SAL_CALL CDocument::getNodeName() OUString SAL_CALL CDocument::getNodeName()
{ {
// does not need mutex currently // does not need mutex currently
return OUString("#document"); return "#document";
} }
OUString SAL_CALL CDocument::getNodeValue() OUString SAL_CALL CDocument::getNodeValue()

View File

@@ -110,7 +110,7 @@ namespace DOM
OUString CDocumentBuilder::_getImplementationName() OUString CDocumentBuilder::_getImplementationName()
{ {
return OUString(aImplementationName); return aImplementationName;
} }
Sequence<OUString> CDocumentBuilder::_getSupportedServiceNames() Sequence<OUString> CDocumentBuilder::_getSupportedServiceNames()
{ {

View File

@@ -49,7 +49,7 @@ namespace DOM
OUString SAL_CALL CDocumentFragment::getNodeName() OUString SAL_CALL CDocumentFragment::getNodeName()
{ {
return OUString("#document-fragment"); return "#document-fragment";
} }
OUString SAL_CALL CDocumentFragment::getNodeValue() OUString SAL_CALL CDocumentFragment::getNodeValue()
{ {

View File

@@ -51,7 +51,7 @@ namespace DOM
OUString CSAXDocumentBuilder::_getImplementationName() OUString CSAXDocumentBuilder::_getImplementationName()
{ {
return OUString(aImplementationName); return aImplementationName;
} }
Sequence<OUString> CSAXDocumentBuilder::_getSupportedServiceNames() Sequence<OUString> CSAXDocumentBuilder::_getSupportedServiceNames()
{ {

View File

@@ -60,7 +60,7 @@ namespace DOM
OUString SAL_CALL CText::getNodeName() OUString SAL_CALL CText::getNodeName()
{ {
return OUString("#text"); return "#text";
} }
Reference< XText > SAL_CALL CText::splitText(sal_Int32 /*offset*/) Reference< XText > SAL_CALL CText::splitText(sal_Int32 /*offset*/)

View File

@@ -113,7 +113,7 @@ OUString SAL_CALL CBlankNode::getStringValue()
namespace comp_CBlankNode { namespace comp_CBlankNode {
OUString _getImplementationName() { OUString _getImplementationName() {
return OUString( "CBlankNode"); return "CBlankNode";
} }
css::uno::Sequence< OUString > _getSupportedServiceNames() css::uno::Sequence< OUString > _getSupportedServiceNames()

View File

@@ -171,7 +171,7 @@ css::uno::Reference< css::rdf::XURI > SAL_CALL CLiteral::getDatatype()
namespace comp_CLiteral { namespace comp_CLiteral {
OUString _getImplementationName() { OUString _getImplementationName() {
return OUString( "CLiteral"); return "CLiteral";
} }
css::uno::Sequence< OUString > _getSupportedServiceNames() css::uno::Sequence< OUString > _getSupportedServiceNames()

View File

@@ -794,8 +794,8 @@ OUString SAL_CALL CURI::getLocalName()
namespace comp_CURI { namespace comp_CURI {
OUString _getImplementationName() { OUString _getImplementationName() {
return OUString( return
"CURI"); "CURI";
} }
css::uno::Sequence< OUString > _getSupportedServiceNames() css::uno::Sequence< OUString > _getSupportedServiceNames()

View File

@@ -2465,7 +2465,7 @@ librdf_TypeConverter::convertToStatement(librdf_statement* i_pStmt,
namespace comp_librdf_Repository { namespace comp_librdf_Repository {
OUString _getImplementationName() { OUString _getImplementationName() {
return OUString("librdf_Repository"); return "librdf_Repository";
} }
uno::Sequence< OUString > _getSupportedServiceNames() uno::Sequence< OUString > _getSupportedServiceNames()

View File

@@ -67,7 +67,7 @@ namespace XPath
OUString CXPathAPI::_getImplementationName() OUString CXPathAPI::_getImplementationName()
{ {
return OUString(aImplementationName); return aImplementationName;
} }
Sequence<OUString> CXPathAPI::_getSupportedServiceNames() Sequence<OUString> CXPathAPI::_getSupportedServiceNames()