mirror of
https://github.com/qpdf/qpdf.git
synced 2024-06-02 02:10:52 +00:00
Tidy QPDF_pages.cc
This commit is contained in:
parent
d39351a14f
commit
6cff12bf37
|
@ -306,7 +306,7 @@ QPDF::updateObjectMapsInternal( // NOLINT(misc-no-recursion)
|
|||
}
|
||||
} else if (tc == ::ot_dictionary || tc == ::ot_stream) {
|
||||
auto dict = tc == ::ot_stream ? oh.getDict() : oh;
|
||||
int ssp = tc == ::ot_stream && skip_stream_parameters ? skip_stream_parameters(oh) : 0 ;
|
||||
int ssp = tc == ::ot_stream && skip_stream_parameters ? skip_stream_parameters(oh) : 0;
|
||||
|
||||
for (auto const& key: dict.getKeys()) {
|
||||
if (is_page_node && (key == "/Thumb")) {
|
||||
|
|
|
@ -75,8 +75,10 @@ QPDF::getAllPages()
|
|||
}
|
||||
|
||||
void
|
||||
QPDF::getAllPagesInternal(
|
||||
QPDFObjectHandle cur_node, QPDFObjGen::set& visited, QPDFObjGen::set& seen)
|
||||
QPDF::getAllPagesInternal( // NOLINT(misc-no-recursion)
|
||||
QPDFObjectHandle cur_node,
|
||||
QPDFObjGen::set& visited,
|
||||
QPDFObjGen::set& seen)
|
||||
{
|
||||
if (!visited.add(cur_node)) {
|
||||
throw QPDFExc(
|
||||
|
@ -262,7 +264,10 @@ QPDF::removePage(QPDFObjectHandle page)
|
|||
}
|
||||
|
||||
void
|
||||
QPDF::addPageAt(QPDFObjectHandle newpage, bool before, QPDFObjectHandle refpage)
|
||||
QPDF::addPageAt(
|
||||
QPDFObjectHandle newpage, // NOLINT (performance-unnecessary-value-param) ABI
|
||||
bool before,
|
||||
QPDFObjectHandle refpage)
|
||||
{
|
||||
int refpos = findPage(refpage);
|
||||
if (!before) {
|
||||
|
@ -272,7 +277,8 @@ QPDF::addPageAt(QPDFObjectHandle newpage, bool before, QPDFObjectHandle refpage)
|
|||
}
|
||||
|
||||
void
|
||||
QPDF::addPage(QPDFObjectHandle newpage, bool first)
|
||||
QPDF::addPage(
|
||||
QPDFObjectHandle newpage, bool first) // NOLINT (performance-unnecessary-value-param) ABI
|
||||
{
|
||||
if (first) {
|
||||
insertPage(newpage, 0);
|
||||
|
|
Loading…
Reference in New Issue
Block a user