summaryrefslogtreecommitdiff
path: root/xmlsecurity
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2017-03-16 09:13:49 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2017-03-30 16:11:21 +0200
commit371b9dd9166b19b8beee584d345eec714719c8c2 (patch)
tree10a1b6aed36eeeffc4d001e251d982a644555ed4 /xmlsecurity
parent62cf54042fecadbba3214cbc16c5f8441c13f30b (diff)
xmlsecurity: use auto when declaring iterators
Change-Id: Ie56c0c0e1917f159957babca346f1a3fa04bc629 Reviewed-on: https://gerrit.libreoffice.org/35253 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org> (cherry picked from commit 9dd836e4f6bd4be378b56bd581d27e2b02077f0b)
Diffstat (limited to 'xmlsecurity')
-rw-r--r--xmlsecurity/source/pdfio/pdfdocument.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmlsecurity/source/pdfio/pdfdocument.cxx b/xmlsecurity/source/pdfio/pdfdocument.cxx
index 49e76a300857..0457f0dd3e34 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());