summaryrefslogtreecommitdiff
path: root/sc/source/filter/oox/sheetdatabuffer.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-09-12 08:14:36 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-09-12 09:42:55 +0200
commitb6819a53c0b56a47d6ac7c6eb5aa7d82ca49136c (patch)
tree393e90116f9b141c5f1e189dbc48ca774f171967 /sc/source/filter/oox/sheetdatabuffer.cxx
parentda705eff910f512623a689aaf28604270fb8f1c4 (diff)
clang-tidy modernize-use-emplace in sc
Change-Id: Ifc38e1fc188fe957a0c717aec19cdd6637e4c658 Reviewed-on: https://gerrit.libreoffice.org/42183 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/filter/oox/sheetdatabuffer.cxx')
-rw-r--r--sc/source/filter/oox/sheetdatabuffer.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/filter/oox/sheetdatabuffer.cxx b/sc/source/filter/oox/sheetdatabuffer.cxx
index 28b48da25a77..4dba319eee72 100644
--- a/sc/source/filter/oox/sheetdatabuffer.cxx
+++ b/sc/source/filter/oox/sheetdatabuffer.cxx
@@ -279,7 +279,7 @@ void SheetDataBuffer::createArrayFormula( const ScRange& rRange, const ApiTokenS
/* Array formulas will be inserted later in finalizeImport(). This is
needed to not disturb collecting all the cells, which will be put into
the sheet in large blocks to increase performance. */
- maArrayFormulas.push_back( ArrayFormula( rRange, rTokens ) );
+ maArrayFormulas.emplace_back( rRange, rTokens );
}
void SheetDataBuffer::createTableOperation( const ScRange& rRange, const DataTableModel& rModel )
@@ -287,7 +287,7 @@ void SheetDataBuffer::createTableOperation( const ScRange& rRange, const DataTab
/* Table operations will be inserted later in finalizeImport(). This is
needed to not disturb collecting all the cells, which will be put into
the sheet in large blocks to increase performance. */
- maTableOperations.push_back( TableOperation( rRange, rModel ) );
+ maTableOperations.emplace_back( rRange, rModel );
}
void SheetDataBuffer::setRowFormat( sal_Int32 nRow, sal_Int32 nXfId, bool bCustomFormat )
@@ -313,7 +313,7 @@ void SheetDataBuffer::setRowFormat( sal_Int32 nRow, sal_Int32 nXfId, bool bCusto
void SheetDataBuffer::setMergedRange( const ScRange& rRange )
{
- maMergedRanges.push_back( MergedRange( rRange ) );
+ maMergedRanges.emplace_back( rRange );
}
typedef std::pair<sal_Int32, sal_Int32> FormatKeyPair;
@@ -709,7 +709,7 @@ void SheetDataBuffer::setCellFormat( const CellModel& rModel )
/* start new merged range, if cell is not empty (#108781#),
or try to expand last range with empty cell */
if( rModel.mnCellType != XML_TOKEN_INVALID )
- maCenterFillRanges.push_back( MergedRange( rModel.maCellAddr, nHorAlign ) );
+ maCenterFillRanges.emplace_back( rModel.maCellAddr, nHorAlign );
else if( !maCenterFillRanges.empty() )
maCenterFillRanges.rbegin()->tryExpand( rModel.maCellAddr, nHorAlign );
}