aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDFPageDocumentHelper.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libqpdf/QPDFPageDocumentHelper.cc')
-rw-r--r--libqpdf/QPDFPageDocumentHelper.cc15
1 files changed, 7 insertions, 8 deletions
diff --git a/libqpdf/QPDFPageDocumentHelper.cc b/libqpdf/QPDFPageDocumentHelper.cc
index 06ec5ff7..c9c2cf52 100644
--- a/libqpdf/QPDFPageDocumentHelper.cc
+++ b/libqpdf/QPDFPageDocumentHelper.cc
@@ -14,7 +14,7 @@ QPDFPageDocumentHelper::getAllPages()
{
std::vector<QPDFPageObjectHelper> pages;
for (auto const& iter: this->qpdf.getAllPages()) {
- pages.push_back(QPDFPageObjectHelper(iter));
+ pages.emplace_back(iter);
}
return pages;
}
@@ -59,8 +59,8 @@ QPDFPageDocumentHelper::flattenAnnotations(int required_flags, int forbidden_fla
if (afdh.getNeedAppearances()) {
this->qpdf.getRoot()
.getKey("/AcroForm")
- .warnIfPossible("document does not have updated appearance streams,"
- " so form fields will not be flattened");
+ .warnIfPossible("document does not have updated appearance streams, so form fields "
+ "will not be flattened");
}
for (auto& ph: getAllPages()) {
QPDFObjectHandle resources = ph.getAttribute("/Resources", true);
@@ -126,11 +126,10 @@ QPDFPageDocumentHelper::flattenAnnotationsForPage(
}
new_content += content;
} else if (process) {
- // If an annotation has no appearance stream, just drop
- // the annotation when flattening. This can happen for
- // unchecked checkboxes and radio buttons, popup windows
- // associated with comments that aren't visible, and other
- // types of annotations that aren't visible.
+ // If an annotation has no appearance stream, just drop the annotation when flattening.
+ // This can happen for unchecked checkboxes and radio buttons, popup windows associated
+ // with comments that aren't visible, and other types of annotations that aren't
+ // visible.
QTC::TC("qpdf", "QPDFPageDocumentHelper ignore annotation with no appearance");
} else {
new_annots.push_back(aoh.getObjectHandle());