[Libreoffice-commits] .: xmloff/inc xmloff/source
Caolán McNamara
caolan at kemper.freedesktop.org
Mon Dec 6 13:30:43 PST 2010
xmloff/inc/xmloff/txtparae.hxx | 2 +-
xmloff/source/text/txtparae.cxx | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
New commits:
commit 545d2a7479c1ac3d9840c479d6d69a4a176f4ff2
Author: Caolán McNamara <caolanm at redhat.com>
Date: Mon Dec 6 19:07:50 2010 +0000
cppcheck: parameter can be passed by reference
diff --git a/xmloff/inc/xmloff/txtparae.hxx b/xmloff/inc/xmloff/txtparae.hxx
index 6e4c2fb..6b7254f 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 2feffad..f2e9742 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());
More information about the Libreoffice-commits
mailing list