summaryrefslogtreecommitdiff
path: root/xmloff/source/style/xmlaustp.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-04-12 16:39:03 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-04-18 07:37:31 +0000
commit789055bc2acb4c71483fd60ea258d158bd5aec10 (patch)
tree7849de841a71f667a30b2a971ad0c3d406110396 /xmloff/source/style/xmlaustp.cxx
parent150ac9cf05ed9da6a2af5bc3f820280fd853e519 (diff)
clang-tidy performance-unnecessary-copy-initialization
probably not much performance benefit, but it sure is good at identifying leftover intermediate variables from previous refactorings. Change-Id: I3ce16fe496ac2733c1cb0a35f74c0fc9193cc657 Reviewed-on: https://gerrit.libreoffice.org/24026 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'xmloff/source/style/xmlaustp.cxx')
-rw-r--r--xmloff/source/style/xmlaustp.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/xmloff/source/style/xmlaustp.cxx b/xmloff/source/style/xmlaustp.cxx
index 582d541c7998..493d46913733 100644
--- a/xmloff/source/style/xmlaustp.cxx
+++ b/xmloff/source/style/xmlaustp.cxx
@@ -69,7 +69,7 @@ void SvXMLAutoStylePoolP::exportStyleAttributes(
{
if ( XML_STYLE_FAMILY_CONTROL_ID == nFamily )
{ // it's a control-related style
- rtl::Reference< XMLPropertySetMapper > aPropertyMapper = rPropExp.getPropertySetMapper();
+ const rtl::Reference< XMLPropertySetMapper >& aPropertyMapper = rPropExp.getPropertySetMapper();
for ( vector< XMLPropertyState >::const_iterator pProp = rProperties.begin();
pProp != rProperties.end();
@@ -87,7 +87,7 @@ void SvXMLAutoStylePoolP::exportStyleAttributes(
if( (XML_STYLE_FAMILY_SD_GRAPHICS_ID == nFamily) || (XML_STYLE_FAMILY_SD_PRESENTATION_ID == nFamily) )
{ // it's a graphics style
- rtl::Reference< XMLPropertySetMapper > aPropertyMapper = rPropExp.getPropertySetMapper();
+ const rtl::Reference< XMLPropertySetMapper >& aPropertyMapper = rPropExp.getPropertySetMapper();
assert(aPropertyMapper.is());
bool bFoundControlShapeDataStyle = false;
@@ -150,7 +150,7 @@ void SvXMLAutoStylePoolP::exportStyleAttributes(
{
if (pProp->mnIndex > -1)
{
- rtl::Reference< XMLPropertySetMapper > aPropMapper = rPropExp.getPropertySetMapper();
+ const rtl::Reference< XMLPropertySetMapper >& aPropMapper = rPropExp.getPropertySetMapper();
sal_Int32 nIndex = pProp->mnIndex;
sal_Int16 nContextID = aPropMapper->GetEntryContextId( nIndex );
switch( nContextID )
@@ -194,7 +194,7 @@ void SvXMLAutoStylePoolP::exportStyleContent(
bool bFooterStartIndex(false);
bool bFooterEndIndex(false);
- rtl::Reference< XMLPropertySetMapper > aPropMapper = rPropExp.getPropertySetMapper();
+ const rtl::Reference< XMLPropertySetMapper >& aPropMapper = rPropExp.getPropertySetMapper();
sal_Int32 nIndex(0);
while(nIndex < aPropMapper->GetEntryCount())