summaryrefslogtreecommitdiff
path: root/xmlsecurity/source/pdfio
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2017-07-13 21:10:52 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2017-07-14 08:34:22 +0200
commit4b7c522208deeb80b821a294e4e76e50c78304e7 (patch)
treea2bd4ac2a53c01fd626cb544e5c5bbcc92825372 /xmlsecurity/source/pdfio
parent85ff2eafc692f6f0d33ac611600935a96058f20a (diff)
xmlsecurity pdf verify: push_back -> emplace_back
And a few other similar small cleanups. Change-Id: I91c992f33f2166d1cf27cbc9def1b69965040658 Reviewed-on: https://gerrit.libreoffice.org/39928 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'xmlsecurity/source/pdfio')
-rw-r--r--xmlsecurity/source/pdfio/pdfdocument.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmlsecurity/source/pdfio/pdfdocument.cxx b/xmlsecurity/source/pdfio/pdfdocument.cxx
index 68619d7047f7..6925b41a1960 100644
--- a/xmlsecurity/source/pdfio/pdfdocument.cxx
+++ b/xmlsecurity/source/pdfio/pdfdocument.cxx
@@ -378,7 +378,7 @@ bool ValidateSignature(SvStream& rStream, vcl::filter::PDFObjectElement* pSignat
continue;
}
size_t nByteRangeLength = pNumber->GetValue();
- aByteRanges.push_back(std::make_pair(nByteRangeOffset, nByteRangeLength));
+ aByteRanges.emplace_back(nByteRangeOffset, nByteRangeLength);
}
// Detect if the byte ranges don't cover everything, but the signature itself.