diff options
author | Caolán McNamara <caolanm@redhat.com> | 2010-12-06 19:07:50 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2010-12-06 21:30:39 +0000 |
commit | 49c611d7698960ab85af654fd538b85ac83b14f0 (patch) | |
tree | 02cc24c79d1cb8dfe006e1b38e38918b850f600c /xmloff | |
parent | 04d3d275e3768b459d4212f3c0dd5fa11efae54c (diff) |
cppcheck: parameter can be passed by reference
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/inc/xmloff/txtparae.hxx | 2 | ||||
-rw-r--r-- | xmloff/source/text/txtparae.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
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<XPropertySet> & 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<XNamed> xName(rPropSet->getPropertyValue(sProperty), UNO_QUERY); + Reference<XNamed> xName(rPropSet->getPropertyValue(rProperty), UNO_QUERY); GetExport().AddAttribute(XML_NAMESPACE_TEXT, XML_NAME, xName->getName()); |