summaryrefslogtreecommitdiff
path: root/poppler
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2019-12-02 19:16:36 +0100
committerAlbert Astals Cid <aacid@kde.org>2019-12-02 19:18:17 +0100
commit3caf1a7a54372f74090caf284ddd3e8e94286d49 (patch)
tree0da858a16e290d0e98bcc7ef0cae0e3ed6064d27 /poppler
parent2ad55c01e03a3fdb287dae73dbd37849498fa329 (diff)
Enable modernize-make-shared and modernize-make-unique
Diffstat (limited to 'poppler')
-rw-r--r--poppler/Gfx.cc2
-rw-r--r--poppler/OutputDev.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/poppler/Gfx.cc b/poppler/Gfx.cc
index f9dc1742..58c36fcb 100644
--- a/poppler/Gfx.cc
+++ b/poppler/Gfx.cc
@@ -4463,7 +4463,7 @@ void Gfx::doImage(Object *ref, Stream *str, bool inlineImg) {
if (obj1.isNull()) {
obj1 = maskDict->lookup("D");
}
- maskColorMap.reset(new GfxImageColorMap(maskBits, &obj1, maskColorSpace));
+ maskColorMap = std::make_unique<GfxImageColorMap>(maskBits, &obj1, maskColorSpace);
if (!maskColorMap->isOk()) {
goto err1;
}
diff --git a/poppler/OutputDev.cc b/poppler/OutputDev.cc
index f1f766d5..f03b146b 100644
--- a/poppler/OutputDev.cc
+++ b/poppler/OutputDev.cc
@@ -183,7 +183,7 @@ void OutputDev::opiEnd(GfxState *state, Dict *opiDict) {
#endif
void OutputDev::startProfile() {
- profileHash.reset(new std::unordered_map<std::string, ProfileData>);
+ profileHash = std::make_unique<std::unordered_map<std::string, ProfileData>>();
}
std::unique_ptr<std::unordered_map<std::string, ProfileData>> OutputDev::endProfile() {