aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDFPageObjectHelper.cc
diff options
context:
space:
mode:
authorm-holger <m-holger@kubitscheck.org>2023-05-28 00:49:18 +0200
committerm-holger <m-holger@kubitscheck.org>2023-06-09 16:42:11 +0200
commit7bc0f1d828eccbc5a277b75aedc85b7523919f87 (patch)
treebdf203f336bc7671cf4f650a9bf142f5b72dd6f6 /libqpdf/QPDFPageObjectHelper.cc
parent22c6b8ccbc9693d2e9c9015a976188fc1e00e517 (diff)
downloadqpdf-7bc0f1d828eccbc5a277b75aedc85b7523919f87.tar.zst
Code tidy - Clang-Tidy rule modernize-use-emplace
Diffstat (limited to 'libqpdf/QPDFPageObjectHelper.cc')
-rw-r--r--libqpdf/QPDFPageObjectHelper.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libqpdf/QPDFPageObjectHelper.cc b/libqpdf/QPDFPageObjectHelper.cc
index 65955e8b..44ffd2cf 100644
--- a/libqpdf/QPDFPageObjectHelper.cc
+++ b/libqpdf/QPDFPageObjectHelper.cc
@@ -451,7 +451,7 @@ QPDFPageObjectHelper::getAnnotations(std::string const& only_subtype)
for (int i = 0; i < nannots; ++i) {
QPDFObjectHandle annot = annots.getArrayItem(i);
if (annot.isDictionaryOfType("", only_subtype)) {
- result.push_back(QPDFAnnotationObjectHelper(annot));
+ result.emplace_back(annot);
}
}
}