diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-09-14 08:35:19 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-09-14 10:25:27 +0200 |
commit | 5d5ac2fd9e8fe4781d6175eb58b949ba9c25d564 (patch) | |
tree | 1c32d0257d3ea62cb60cf802efb0e7f57f8ead8c /xmloff/source/chart | |
parent | d36ccd2a7111b35276c21ed19750921fdfbfdacc (diff) |
clang-tidy modernize-use-emplace in xmloff
Change-Id: I55bf75b5505d01cb33f26fac4603afdb3b4f1780
Reviewed-on: https://gerrit.libreoffice.org/42262
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff/source/chart')
-rw-r--r-- | xmloff/source/chart/SchXMLChartContext.cxx | 2 | ||||
-rw-r--r-- | xmloff/source/chart/SchXMLExport.cxx | 18 | ||||
-rw-r--r-- | xmloff/source/chart/SchXMLTextListContext.cxx | 2 |
3 files changed, 11 insertions, 11 deletions
diff --git a/xmloff/source/chart/SchXMLChartContext.cxx b/xmloff/source/chart/SchXMLChartContext.cxx index 916928d00353..364c687fe685 100644 --- a/xmloff/source/chart/SchXMLChartContext.cxx +++ b/xmloff/source/chart/SchXMLChartContext.cxx @@ -550,7 +550,7 @@ void lcl_swapPointAndSeriesStylesForDonutCharts( ::std::list< DataRowPointStyle ::std::map< sal_Int32, Reference< chart2::XDataSeries > >::const_iterator aIndexEnd( aIndexSeriesMap.end() ); for( ; aIndexIt != aIndexEnd; ++aIndexIt ) - aNewSeriesVector.push_back( NewDonutSeries(aIndexIt->second,nOldSeriesCount) ); + aNewSeriesVector.emplace_back(aIndexIt->second,nOldSeriesCount ); } //overwrite attached axis information according to old series styles diff --git a/xmloff/source/chart/SchXMLExport.cxx b/xmloff/source/chart/SchXMLExport.cxx index 8fdb75e86f8a..41d0716f6b4d 100644 --- a/xmloff/source/chart/SchXMLExport.cxx +++ b/xmloff/source/chart/SchXMLExport.cxx @@ -494,7 +494,7 @@ tLabelAndValueRange lcl_getLabelAndValueRangeByRole( aResult.second = lcl_ConvertRange( xValueSeq->getSourceRangeRepresentation(), xDoc ); if( xLabelSeq.is() || xValueSeq.is()) - rOutSequencesToExport.push_back( SchXMLExportHelper_Impl::tLabelValuesDataPair( xLabelSeq, xValueSeq )); + rOutSequencesToExport.emplace_back( xLabelSeq, xValueSeq ); } return aResult; @@ -2755,8 +2755,8 @@ void SchXMLExportHelper_Impl::exportSeries( { Reference< chart2::data::XDataSequence > xValues( xSequence->getValues() ); if( lcl_exportDomainForThisSequence( xValues, aFirstXDomainRange, mrExport ) ) - m_aDataSequencesToExport.push_back( tLabelValuesDataPair( - uno::Reference< chart2::data::XDataSequence >(), xValues )); + m_aDataSequencesToExport.emplace_back( + uno::Reference< chart2::data::XDataSequence >(), xValues ); } else if( nSeriesIdx==0 ) { @@ -2771,8 +2771,8 @@ void SchXMLExportHelper_Impl::exportSeries( } } if( xYValuesForBubbleChart.is() ) - m_aDataSequencesToExport.push_back( tLabelValuesDataPair( - uno::Reference< chart2::data::XDataSequence >(), xYValuesForBubbleChart )); + m_aDataSequencesToExport.emplace_back( + uno::Reference< chart2::data::XDataSequence >(), xYValuesForBubbleChart ); } } @@ -2873,8 +2873,8 @@ void SchXMLExportHelper_Impl::exportPropertyMapping( SvXMLElementExport( mrExport, XML_NAMESPACE_LO_EXT, XML_PROPERTY_MAPPING, true, true ); // register range for data table export - m_aDataSequencesToExport.push_back( tLabelValuesDataPair( - uno::Reference< chart2::data::XDataSequence >(), xValues )); + m_aDataSequencesToExport.emplace_back( + uno::Reference< chart2::data::XDataSequence >(), xValues ); } } } @@ -3057,8 +3057,8 @@ void SchXMLExportHelper_Impl::exportErrorBar( const Reference<beans::XPropertySe for( ::std::vector< Reference< chart2::data::XDataSequence > >::const_iterator aIt( aErrorBarSequences.begin()); aIt != aErrorBarSequences.end(); ++aIt ) { - m_aDataSequencesToExport.push_back( tLabelValuesDataPair( - uno::Reference< chart2::data::XDataSequence >(), *aIt )); + m_aDataSequencesToExport.emplace_back( + uno::Reference< chart2::data::XDataSequence >(), *aIt ); } } diff --git a/xmloff/source/chart/SchXMLTextListContext.cxx b/xmloff/source/chart/SchXMLTextListContext.cxx index 020b77203907..0893f42ff930 100644 --- a/xmloff/source/chart/SchXMLTextListContext.cxx +++ b/xmloff/source/chart/SchXMLTextListContext.cxx @@ -110,7 +110,7 @@ SvXMLImportContext* SchXMLTextListContext::CreateChildContext( SvXMLImportContext* pContext = nullptr; if( nPrefix == XML_NAMESPACE_TEXT && IsXMLToken( rLocalName, XML_LIST_ITEM ) ) { - m_aTextVector.push_back( OUString() ); + m_aTextVector.emplace_back( ); pContext = new SchXMLListItemContext( GetImport(), rLocalName, m_aTextVector.back() ); } else |