summaryrefslogtreecommitdiffstats
path: root/src/ui/widget/page-sizer.cpp
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-06-18 19:48:07 +0000
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-06-18 19:48:07 +0000
commitfcf93adf1e766fbc69b05e598ee0aeb9b36b1c70 (patch)
tree724178e38d88307e7b4129479006dc2ec122c410 /src/ui/widget/page-sizer.cpp
parentRun clang-tidy’s modernize-use-noexcept pass. (diff)
downloadinkscape-fcf93adf1e766fbc69b05e598ee0aeb9b36b1c70.tar.gz
inkscape-fcf93adf1e766fbc69b05e598ee0aeb9b36b1c70.zip
Run clang-tidy’s modernize-use-emplace pass.
This reduces the boilerplate required to add a new element to a container.
Diffstat (limited to 'src/ui/widget/page-sizer.cpp')
-rw-r--r--src/ui/widget/page-sizer.cpp14
1 files changed, 7 insertions, 7 deletions
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<std::string> 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[] = {