diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-09-12 08:14:36 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-09-12 09:42:55 +0200 |
commit | b6819a53c0b56a47d6ac7c6eb5aa7d82ca49136c (patch) | |
tree | 393e90116f9b141c5f1e189dbc48ca774f171967 /sc/source/ui/Accessibility | |
parent | da705eff910f512623a689aaf28604270fb8f1c4 (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/ui/Accessibility')
-rw-r--r-- | sc/source/ui/Accessibility/AccessibleSpreadsheet.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/ui/Accessibility/AccessibleSpreadsheet.cxx b/sc/source/ui/Accessibility/AccessibleSpreadsheet.cxx index 94518d92f33a..655abcabcb18 100644 --- a/sc/source/ui/Accessibility/AccessibleSpreadsheet.cxx +++ b/sc/source/ui/Accessibility/AccessibleSpreadsheet.cxx @@ -106,7 +106,7 @@ ScMyAddress ScAccessibleSpreadsheet::CalcScAddressFromRangeList(ScRangeList *pMa ScRange *p = *vi; if ( row >= p->aStart.Row() && row <= p->aEnd.Row()) { - m_vecTempCol.push_back(std::make_pair(p->aStart.Col(),p->aEnd.Col())); + m_vecTempCol.emplace_back(p->aStart.Col(),p->aEnd.Col()); } } } @@ -151,7 +151,7 @@ bool ScAccessibleSpreadsheet::CalcScRangeDifferenceMax(const ScRange *pSrc, cons { for (sal_uInt16 col = pDest->aStart.Col(); col <= pDest->aEnd.Col();++col) { - vecRet.push_back(ScMyAddress(col,row,pDest->aStart.Tab())); + vecRet.emplace_back(col,row,pDest->aStart.Tab()); } } } @@ -218,7 +218,7 @@ bool ScAccessibleSpreadsheet::CalcScRangeListDifferenceMax(ScRangeList *pSrc,ScR { for (sal_uInt16 col = pRange->aStart.Col(); col <= pRange->aEnd.Col();++col) { - vecRet.push_back(ScMyAddress(col,row,pRange->aStart.Tab())); + vecRet.emplace_back(col,row,pRange->aStart.Tab()); } } } @@ -1543,7 +1543,7 @@ void ScAccessibleSpreadsheet::NotifyRefMode() CommitChange(aEvent); m_mapFormulaSelectionSend.emplace(aFormulaAddr,xNew); m_vecFormulaLastMyAddr.clear(); - m_vecFormulaLastMyAddr.push_back(aFormulaAddr); + m_vecFormulaLastMyAddr.emplace_back(aFormulaAddr); } else { |