summaryrefslogtreecommitdiff
path: root/cpp/poppler-image.cpp
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2019-12-02 20:03:33 +0100
committerAlbert Astals Cid <aacid@kde.org>2019-12-02 20:03:33 +0100
commit77aa3a007598c4c4836f45d355642d7240f7432b (patch)
tree2847738a0cb6e5a4d40f112b3309ebd563892a6b /cpp/poppler-image.cpp
parentfb285d2c611c5111268d09460d6d58c5fff5bd34 (diff)
Enable modernize-use-emplace
Not claiming copyright since it's a mechanical change
Diffstat (limited to 'cpp/poppler-image.cpp')
-rw-r--r--cpp/poppler-image.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/cpp/poppler-image.cpp b/cpp/poppler-image.cpp
index 48f021bf..0b3908ac 100644
--- a/cpp/poppler-image.cpp
+++ b/cpp/poppler-image.cpp
@@ -480,16 +480,16 @@ std::vector<std::string> image::supported_image_formats()
{
std::vector<std::string> formats;
#if defined(ENABLE_LIBPNG)
- formats.push_back("png");
+ formats.emplace_back("png");
#endif
#if defined(ENABLE_LIBJPEG)
- formats.push_back("jpeg");
- formats.push_back("jpg");
+ formats.emplace_back("jpeg");
+ formats.emplace_back("jpg");
#endif
#if defined(ENABLE_LIBTIFF)
- formats.push_back("tiff");
+ formats.emplace_back("tiff");
#endif
- formats.push_back("pnm");
+ formats.emplace_back("pnm");
return formats;
}