diff options
Diffstat (limited to 'xmlsecurity/source/pdfio/pdfdocument.cxx')
-rw-r--r-- | xmlsecurity/source/pdfio/pdfdocument.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmlsecurity/source/pdfio/pdfdocument.cxx b/xmlsecurity/source/pdfio/pdfdocument.cxx index 5dd2f0aeaa65..94ebd1f46b55 100644 --- a/xmlsecurity/source/pdfio/pdfdocument.cxx +++ b/xmlsecurity/source/pdfio/pdfdocument.cxx @@ -1339,8 +1339,8 @@ size_t PDFDocument::FindStartXRef(SvStream& rStream) aBuf.resize(nSize); OString aPrefix("startxref"); // Find the last startxref at the end of the document. - std::vector<char>::iterator itLastValid = aBuf.end(); - std::vector<char>::iterator it = aBuf.begin(); + auto itLastValid = aBuf.end(); + auto it = aBuf.begin(); while (true) { it = std::search(it, aBuf.end(), aPrefix.getStr(), aPrefix.getStr() + aPrefix.getLength()); |