From 2a1fb4401da16f6a18c0bd05fe4b460a3048f9b5 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 22 Dec 2017 14:23:16 +0200 Subject: loplugin:passstuffbyref improved returns improve the detection of stuff we can return by const &, instead of by copying Change-Id: I479ae89d0413125a8295cc3cddbc0017ed61ed69 Reviewed-on: https://gerrit.libreoffice.org/46915 Tested-by: Jenkins Reviewed-by: Noel Grandin --- xmlscript/source/xml_helper/xml_element.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xmlscript') diff --git a/xmlscript/source/xml_helper/xml_element.cxx b/xmlscript/source/xml_helper/xml_element.cxx index 5b8b6b0326db..02bfdc98245e 100644 --- a/xmlscript/source/xml_helper/xml_element.cxx +++ b/xmlscript/source/xml_helper/xml_element.cxx @@ -37,7 +37,7 @@ void XMLElement::addSubElement( Reference< xml::sax::XAttributeList > const & xE _subElems.push_back( xElem ); } -Reference< xml::sax::XAttributeList > XMLElement::getSubElement( sal_Int32 nIndex ) +Reference< xml::sax::XAttributeList > const & XMLElement::getSubElement( sal_Int32 nIndex ) { return _subElems[ (size_t)nIndex ]; } -- cgit