diff options
author | Adam Reichold <adam.reichold@t-online.de> | 2018-08-26 22:10:47 +0200 |
---|---|---|
committer | Albert Astals Cid <tsdgeos@yahoo.es> | 2018-10-05 09:46:33 +0000 |
commit | 101728e8a5089c01fc7bca950db0e8ae84d27b47 (patch) | |
tree | c6b284956b56d25396908f943f4350262f959783 /utils/pdfdetach.cc | |
parent | e44e90b434434de5ea3b23d3a40ded7a5ad05b1c (diff) |
Remove GooList::append since the single element variant is std::vector::push_back and the list variant is used only once.
Diffstat (limited to 'utils/pdfdetach.cc')
-rw-r--r-- | utils/pdfdetach.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/pdfdetach.cc b/utils/pdfdetach.cc index 860b55c2..f65b435f 100644 --- a/utils/pdfdetach.cc +++ b/utils/pdfdetach.cc @@ -163,7 +163,7 @@ int main(int argc, char *argv[]) { embeddedFiles = new GooList(); for (i = 0; i < doc->getCatalog()->numEmbeddedFiles(); ++i) - embeddedFiles->append(doc->getCatalog()->embeddedFile(i)); + embeddedFiles->push_back(doc->getCatalog()->embeddedFile(i)); nPages = doc->getCatalog()->getNumPages(); for (i = 0; i < nPages; ++i) { @@ -178,7 +178,7 @@ int main(int argc, char *argv[]) { annot = annots->getAnnot(j); if (annot->getType() != Annot::typeFileAttachment) continue; - embeddedFiles->append(new FileSpec(static_cast<AnnotFileAttachment *>(annot)->getFile())); + embeddedFiles->push_back(new FileSpec(static_cast<AnnotFileAttachment *>(annot)->getFile())); } } |