From 49c611d7698960ab85af654fd538b85ac83b14f0 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 6 Dec 2010 19:07:50 +0000 Subject: cppcheck: parameter can be passed by reference --- xmloff/inc/xmloff/txtparae.hxx | 2 +- xmloff/source/text/txtparae.cxx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'xmloff') diff --git a/xmloff/inc/xmloff/txtparae.hxx b/xmloff/inc/xmloff/txtparae.hxx index 5f8cdaee0e7e..04a2278938f5 100644 --- a/xmloff/inc/xmloff/txtparae.hxx +++ b/xmloff/inc/xmloff/txtparae.hxx @@ -415,7 +415,7 @@ protected: void exportTextMark( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet> & xPropSet, - const ::rtl::OUString sProperty, + const ::rtl::OUString& rProperty, const enum ::xmloff::token::XMLTokenEnum pElements[], sal_Bool bAutoStyles); diff --git a/xmloff/source/text/txtparae.cxx b/xmloff/source/text/txtparae.cxx index 4e2da753a3f6..5b1a38f02f51 100644 --- a/xmloff/source/text/txtparae.cxx +++ b/xmloff/source/text/txtparae.cxx @@ -2416,7 +2416,7 @@ void XMLTextParagraphExport::exportSoftPageBreak( void XMLTextParagraphExport::exportTextMark( const Reference & rPropSet, - const OUString sProperty, + const OUString& rProperty, const enum XMLTokenEnum pElements[], sal_Bool bAutoStyles) { @@ -2431,7 +2431,7 @@ void XMLTextParagraphExport::exportTextMark( if (!bAutoStyles) { // name element - Reference xName(rPropSet->getPropertyValue(sProperty), UNO_QUERY); + Reference xName(rPropSet->getPropertyValue(rProperty), UNO_QUERY); GetExport().AddAttribute(XML_NAMESPACE_TEXT, XML_NAME, xName->getName()); -- cgit