diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-09-11 11:29:40 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-09-11 13:50:50 +0200 |
commit | 7ca4ea54b4d610104df1b88ae5b04c2081a4a429 (patch) | |
tree | ca6be37362fcdf1368b087fd3787f17745326801 /lotuswordpro | |
parent | 59010ca14ba07f0a1d6f662bb1f8fbad33f3c654 (diff) |
clang-tidy modernize-use-emplace in hwpfilter..lotuswordpro
Change-Id: Ic11634ca28396fd156390c511087bae03bd5fb70
Reviewed-on: https://gerrit.libreoffice.org/42156
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'lotuswordpro')
4 files changed, 4 insertions, 4 deletions
diff --git a/lotuswordpro/source/filter/lwpbulletstylemgr.cxx b/lotuswordpro/source/filter/lwpbulletstylemgr.cxx index 1e6861680e85..38a5f5b92fd2 100644 --- a/lotuswordpro/source/filter/lwpbulletstylemgr.cxx +++ b/lotuswordpro/source/filter/lwpbulletstylemgr.cxx @@ -141,7 +141,7 @@ OUString LwpBulletStyleMgr::RegisterBulletStyle(LwpPara* pPara, LwpBulletOverrid } } - m_vIDsPairList.push_back(std::make_pair(pBulletOver, aIndentID)); + m_vIDsPairList.emplace_back(pBulletOver, aIndentID); OUString aStyleName; LwpFribPtr& rBulletParaFribs = pBulletPara->GetFribs(); diff --git a/lotuswordpro/source/filter/lwpgrfobj.cxx b/lotuswordpro/source/filter/lwpgrfobj.cxx index 97b034a32e6c..55db2b3fb73c 100644 --- a/lotuswordpro/source/filter/lwpgrfobj.cxx +++ b/lotuswordpro/source/filter/lwpgrfobj.cxx @@ -661,7 +661,7 @@ void LwpGraphicObject::CreateGrafObject() } // insert image object into array - m_vXFDrawObjects.push_back(pImage.get()); + m_vXFDrawObjects.emplace_back(pImage.get()); } diff --git a/lotuswordpro/source/filter/xfilter/xfcontentcontainer.cxx b/lotuswordpro/source/filter/xfilter/xfcontentcontainer.cxx index 7608da24307f..e2b1f58bdfa4 100644 --- a/lotuswordpro/source/filter/xfilter/xfcontentcontainer.cxx +++ b/lotuswordpro/source/filter/xfilter/xfcontentcontainer.cxx @@ -70,7 +70,7 @@ XFContentContainer::~XFContentContainer() void XFContentContainer::Add(XFContent *pContent) { - m_aContents.push_back(pContent); + m_aContents.emplace_back(pContent); } void XFContentContainer::Add(const OUString& text) diff --git a/lotuswordpro/source/filter/xfilter/xftextspan.cxx b/lotuswordpro/source/filter/xfilter/xftextspan.cxx index 90f6e32aa569..05427d6dde6d 100644 --- a/lotuswordpro/source/filter/xfilter/xftextspan.cxx +++ b/lotuswordpro/source/filter/xfilter/xftextspan.cxx @@ -86,7 +86,7 @@ enumXFContent XFTextSpan::GetContentType() void XFTextSpan::Add(XFContent *pContent) { - m_aContents.push_back(pContent); + m_aContents.emplace_back(pContent); } void XFTextSpan::Add(const OUString& text) |