summaryrefslogtreecommitdiff
path: root/oox/source/helper
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-04-11 09:23:29 +0200
committerNoel Grandin <noel@peralex.com>2016-04-11 11:38:57 +0200
commit9f877f677346968774d4366f105114fe7f36dd69 (patch)
treed8fb1f3924b5956c8f693acb8df33ba9757f9dc1 /oox/source/helper
parentb9d091e7d4eb3014aa6198f64f414702105b5aab (diff)
clang-tidy performance-unnecessary-value-param in oox
Change-Id: I1ac86906ea21c00f8d77834c94583be7d9e9974e
Diffstat (limited to 'oox/source/helper')
-rw-r--r--oox/source/helper/grabbagstack.cxx2
-rw-r--r--oox/source/helper/propertymap.cxx10
2 files changed, 6 insertions, 6 deletions
diff --git a/oox/source/helper/grabbagstack.cxx b/oox/source/helper/grabbagstack.cxx
index 71bea8e26bea..fdae712d00e8 100644
--- a/oox/source/helper/grabbagstack.cxx
+++ b/oox/source/helper/grabbagstack.cxx
@@ -43,7 +43,7 @@ PropertyValue GrabBagStack::getRootProperty()
return aProperty;
}
-void GrabBagStack::appendElement(const OUString& aName, Any aAny)
+void GrabBagStack::appendElement(const OUString& aName, const Any& aAny)
{
PropertyValue aValue;
aValue.Name = aName;
diff --git a/oox/source/helper/propertymap.cxx b/oox/source/helper/propertymap.cxx
index 1e9cf8e01b18..82860c380f10 100644
--- a/oox/source/helper/propertymap.cxx
+++ b/oox/source/helper/propertymap.cxx
@@ -286,7 +286,7 @@ Reference< XPropertySet > PropertyMap::makePropertySet() const
}
#if OSL_DEBUG_LEVEL > 0
-static void lclDumpAnyValue( Any value)
+static void lclDumpAnyValue( const Any& value)
{
OUString strValue;
Sequence< OUString > strArray;
@@ -449,7 +449,7 @@ static void lclDumpAnyValue( Any value)
}
#ifdef DBG_UTIL
-void PropertyMap::dump( Reference< XPropertySet > rXPropSet )
+void PropertyMap::dump( const Reference< XPropertySet >& rXPropSet )
{
Reference< XPropertySetInfo > info = rXPropSet->getPropertySetInfo ();
Sequence< Property > props = info->getProperties ();
@@ -552,7 +552,7 @@ static void printParameterPairData(int level, EnhancedCustomShapeParameterPair &
fprintf (stderr, "}");
}
-static const char* lclDumpAnyValueCode( Any value, int level = 0)
+static const char* lclDumpAnyValueCode( const Any& value, int level = 0)
{
OUString strValue;
Sequence< OUString > strArray;
@@ -899,7 +899,7 @@ static const char* lclDumpAnyValueCode( Any value, int level = 0)
return "";
}
-void PropertyMap::dumpCode( Reference< XPropertySet > rXPropSet )
+void PropertyMap::dumpCode( const Reference< XPropertySet >& rXPropSet )
{
Reference< XPropertySetInfo > info = rXPropSet->getPropertySetInfo ();
Sequence< Property > props = info->getProperties ();
@@ -928,7 +928,7 @@ void PropertyMap::dumpCode( Reference< XPropertySet > rXPropSet )
}
}
-void PropertyMap::dumpData(Reference<XPropertySet> xPropertySet)
+void PropertyMap::dumpData(const Reference<XPropertySet>& xPropertySet)
{
Reference<XPropertySetInfo> xPropertySetInfo = xPropertySet->getPropertySetInfo();
Sequence<Property> aProperties = xPropertySetInfo->getProperties();