diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-09-13 14:56:28 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-09-14 08:28:31 +0200 |
commit | b0b0aef18fff981fa1f4a1539c150260cc526595 (patch) | |
tree | 5ca719fbb17aa857d132f2d97becfa0ac95b34c2 /sw/source/core/tox | |
parent | a4fb52ac0f48b10b72be330fe49d99a9a2471751 (diff) |
clang-tidy modernize-use-emplace in sw
Change-Id: I92fd035824f247dc61edfb18c54b960a7733fdf7
Reviewed-on: https://gerrit.libreoffice.org/42244
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/tox')
-rw-r--r-- | sw/source/core/tox/tox.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sw/source/core/tox/tox.cxx b/sw/source/core/tox/tox.cxx index 844dce1e936a..ed4716579063 100644 --- a/sw/source/core/tox/tox.cxx +++ b/sw/source/core/tox/tox.cxx @@ -335,11 +335,11 @@ SwForm::SwForm( TOXTypes eTyp ) // #i21237# if (TOX_CONTENT == m_eType) { - aTokens.push_back(SwFormToken(TOKEN_ENTRY_NO)); - aTokens.push_back(SwFormToken(TOKEN_ENTRY_TEXT)); + aTokens.emplace_back(TOKEN_ENTRY_NO); + aTokens.emplace_back(TOKEN_ENTRY_TEXT); } else - aTokens.push_back(SwFormToken(TOKEN_ENTRY)); + aTokens.emplace_back(TOKEN_ENTRY); if (TOX_AUTHORITIES != m_eType) { @@ -351,11 +351,11 @@ SwForm::SwForm( TOXTypes eTyp ) // #i21237# aToken.eTabAlign = SvxTabAdjust::End; aTokens.push_back(aToken); - aTokens.push_back(SwFormToken(TOKEN_PAGE_NUMS)); + aTokens.emplace_back(TOKEN_PAGE_NUMS); } if (TOX_CONTENT == m_eType || TOX_ILLUSTRATIONS == m_eType) - aTokens.push_back(SwFormToken(TOKEN_LINK_END)); + aTokens.emplace_back(TOKEN_LINK_END); SetTemplate(0, SwResId(*pPoolId++)); |