diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-03-03 09:59:31 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-03-04 00:51:57 +0000 |
commit | c6223049651d6607101ef04271773e478a429c8a (patch) | |
tree | f2bfb8c976896009409ae47780c324d3a9b51c77 /oox | |
parent | 242ed97d9a74a08363e1306452bba20f06d673e4 (diff) |
V813: Decreased performance
Change-Id: Ica2563d9e8da15e19eb38246d4de54a1fcb75655
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/export/chartexport.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/oox/source/export/chartexport.cxx b/oox/source/export/chartexport.cxx index 94146804e2d9..dbd28ebed128 100644 --- a/oox/source/export/chartexport.cxx +++ b/oox/source/export/chartexport.cxx @@ -2096,7 +2096,7 @@ void ChartExport::exportAxes( ) } } -void ChartExport::exportAxis( AxisIdPair aAxisIdPair ) +void ChartExport::exportAxis(const AxisIdPair& rAxisIdPair) { // get some properties from document first bool bHasXAxisTitle = false, @@ -2145,7 +2145,7 @@ void ChartExport::exportAxis( AxisIdPair aAxisIdPair ) sal_Int32 nAxisType = XML_catAx; const char* sAxPos = NULL; - switch( aAxisIdPair.nAxisType ) + switch( rAxisIdPair.nAxisType ) { case AXIS_PRIMARY_X: { @@ -2226,7 +2226,7 @@ void ChartExport::exportAxis( AxisIdPair aAxisIdPair ) } } - _exportAxis( xAxisProp, xAxisTitle, xMajorGrid, xMinorGrid, nAxisType, sAxPos, aAxisIdPair ); + _exportAxis(xAxisProp, xAxisTitle, xMajorGrid, xMinorGrid, nAxisType, sAxPos, rAxisIdPair); } void ChartExport::_exportAxis( @@ -2236,13 +2236,13 @@ void ChartExport::_exportAxis( const Reference< XPropertySet >& xMinorGrid, sal_Int32 nAxisType, const char* sAxisPos, - AxisIdPair aAxisIdPair ) + const AxisIdPair& rAxisIdPair ) { FSHelperPtr pFS = GetFS(); pFS->startElement( FSNS( XML_c, nAxisType ), FSEND ); pFS->singleElement( FSNS( XML_c, XML_axId ), - XML_val, I32S( aAxisIdPair.nAxisId ), + XML_val, I32S( rAxisIdPair.nAxisId ), FSEND ); pFS->startElement( FSNS( XML_c, XML_scaling ), @@ -2414,7 +2414,7 @@ void ChartExport::_exportAxis( exportShapeProps( xAxisProp ); pFS->singleElement( FSNS( XML_c, XML_crossAx ), - XML_val, I32S( aAxisIdPair.nCrossAx ), + XML_val, I32S( rAxisIdPair.nCrossAx ), FSEND ); // crosses & crossesAt |