From fcf93adf1e766fbc69b05e598ee0aeb9b36b1c70 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Mon, 18 Jun 2018 21:48:07 +0200 Subject: =?UTF-8?q?Run=20clang-tidy=E2=80=99s=20modernize-use-emplace=20pa?= =?UTF-8?q?ss.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reduces the boilerplate required to add a new element to a container. --- src/ui/widget/page-sizer.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/ui/widget/page-sizer.cpp') diff --git a/src/ui/widget/page-sizer.cpp b/src/ui/widget/page-sizer.cpp index b8eeca00d..58af30fc9 100644 --- a/src/ui/widget/page-sizer.cpp +++ b/src/ui/widget/page-sizer.cpp @@ -86,13 +86,13 @@ static std::vector lscape_papers; static void fill_landscape_papers() { - lscape_papers.push_back("US #10 Envelope"); - lscape_papers.push_back("DL Envelope"); - lscape_papers.push_back("Banner 468x60"); - lscape_papers.push_back("Business Card (ISO 7810)"); - lscape_papers.push_back("Business Card (US)"); - lscape_papers.push_back("Business Card (Europe)"); - lscape_papers.push_back("Business Card (Aus/NZ)"); + lscape_papers.emplace_back("US #10 Envelope"); + lscape_papers.emplace_back("DL Envelope"); + lscape_papers.emplace_back("Banner 468x60"); + lscape_papers.emplace_back("Business Card (ISO 7810)"); + lscape_papers.emplace_back("Business Card (US)"); + lscape_papers.emplace_back("Business Card (Europe)"); + lscape_papers.emplace_back("Business Card (Aus/NZ)"); } static PaperSizeRec const inkscape_papers[] = { -- cgit v1.2.3