Commit e50ff67d0038b4fea93376a918c85ebf225d7d8a

Authored by Jay Berkenbilt
1 parent 7b3fff15

Remove explicit type from PageLabel dictionary

The old code didn't put one there, and it's not really useful. It just
makes the file (trivially) larger.
libqpdf/QPDFPageLabelDocumentHelper.cc
@@ -104,7 +104,7 @@ QPDFObjectHandle @@ -104,7 +104,7 @@ QPDFObjectHandle
104 QPDFPageLabelDocumentHelper::pageLabelDict( 104 QPDFPageLabelDocumentHelper::pageLabelDict(
105 qpdf_page_label_e label_type, int start_num, std::string_view prefix) 105 qpdf_page_label_e label_type, int start_num, std::string_view prefix)
106 { 106 {
107 - auto num = "<< /Type /PageLabel >>"_qpdf; 107 + auto num = QPDFObjectHandle::newDictionary();
108 switch (label_type) { 108 switch (label_type) {
109 case pl_none: 109 case pl_none:
110 break; 110 break;