summaryrefslogtreecommitdiffstats
path: root/include/xmloff
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-03-13 15:04:48 +0200
committerNoel Grandin <noel@peralex.com>2014-03-13 15:05:31 +0200
commitfddde2b74a24b1e88e33940ee98f7fa2887dc58c (patch)
tree4cae7cb69b60c2c4628195caf36b7ec56e573c66 /include/xmloff
parentforward*PropertyValue functions need not be SAL_CALL (diff)
downloadcore-fddde2b74a24b1e88e33940ee98f7fa2887dc58c.tar.gz
core-fddde2b74a24b1e88e33940ee98f7fa2887dc58c.zip
xmloff,vbahelper: prefer passing OUString and OString by reference
Change-Id: I8b7e4284c122549c03edaa7f3963cbfb2024b3fc
Diffstat (limited to 'include/xmloff')
-rw-r--r--include/xmloff/SettingsExportHelper.hxx6
-rw-r--r--include/xmloff/attrlist.hxx2
-rw-r--r--include/xmloff/txtimp.hxx4
-rw-r--r--include/xmloff/xmlaustp.hxx2
4 files changed, 7 insertions, 7 deletions
diff --git a/include/xmloff/SettingsExportHelper.hxx b/include/xmloff/SettingsExportHelper.hxx
index 8fed19566757..67351e8e6bc1 100644
--- a/include/xmloff/SettingsExportHelper.hxx
+++ b/include/xmloff/SettingsExportHelper.hxx
@@ -81,14 +81,14 @@ class XMLOFF_DLLPUBLIC XMLSettingsExportHelper
const OUString& rName) const;
void exportIndexAccess(
const com::sun::star::uno::Reference<com::sun::star::container::XIndexAccess> aIndexed,
- const OUString rName) const;
+ const OUString& rName) const;
void exportSymbolDescriptors(
const com::sun::star::uno::Sequence < com::sun::star::formula::SymbolDescriptor > &rProps,
- const OUString rName) const;
+ const OUString& rName) const;
void exportForbiddenCharacters(
const com::sun::star::uno::Any &rAny,
- const OUString rName) const;
+ const OUString& rName) const;
public:
XMLSettingsExportHelper( ::xmloff::XMLSettingsExportContext& i_rContext );
diff --git a/include/xmloff/attrlist.hxx b/include/xmloff/attrlist.hxx
index 9cf3efa014be..dd9c66bb799e 100644
--- a/include/xmloff/attrlist.hxx
+++ b/include/xmloff/attrlist.hxx
@@ -69,7 +69,7 @@ public:
// methods that are not contained in any interface
void AddAttribute( const OUString &sName , const OUString &sValue );
void Clear();
- void RemoveAttribute( const OUString sName );
+ void RemoveAttribute( const OUString& sName );
void AppendAttributeList( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList > & );
void SetValueByIndex( sal_Int16 i, const OUString& rValue );
void RemoveAttributeByIndex( sal_Int16 i );
diff --git a/include/xmloff/txtimp.hxx b/include/xmloff/txtimp.hxx
index 75049eff9318..b562dafced7f 100644
--- a/include/xmloff/txtimp.hxx
+++ b/include/xmloff/txtimp.hxx
@@ -580,9 +580,9 @@ public:
OUString FindActiveBookmarkName();
- void pushFieldCtx( OUString name, OUString type );
+ void pushFieldCtx( const OUString& name, const OUString& type );
void popFieldCtx();
- void addFieldParam( OUString name, OUString value );
+ void addFieldParam( const OUString& name, const OUString& value );
void setCurrentFieldParamsTo(::com::sun::star::uno::Reference< ::com::sun::star::text::XFormField> &xFormField);
OUString getCurrentFieldType();
bool hasCurrentFieldCtx();
diff --git a/include/xmloff/xmlaustp.hxx b/include/xmloff/xmlaustp.hxx
index 2f7d2390658e..8459c2b6820a 100644
--- a/include/xmloff/xmlaustp.hxx
+++ b/include/xmloff/xmlaustp.hxx
@@ -77,7 +77,7 @@ public:
if bAsFamily is sal_False, the family name is used as element name
*/
// TODO: Remove this ugly method as soon as possible
- void AddFamily( sal_Int32 nFamily, const OUString& rStrName, SvXMLExportPropertyMapper* pMapper, OUString aStrPrefix, sal_Bool bAsFamily = sal_True );
+ void AddFamily( sal_Int32 nFamily, const OUString& rStrName, SvXMLExportPropertyMapper* pMapper, const OUString& aStrPrefix, sal_Bool bAsFamily = sal_True );
void AddFamily( sal_Int32 nFamily, const OUString& rStrName,
const UniReference< SvXMLExportPropertyMapper >& rMapper,
const OUString& rStrPrefix, sal_Bool bAsFamily = sal_True );