Kaydet (Commit) 9dd836e4 authored tarafından Miklos Vajna's avatar Miklos Vajna

xmlsecurity: use auto when declaring iterators

Change-Id: Ie56c0c0e1917f159957babca346f1a3fa04bc629
Reviewed-on: https://gerrit.libreoffice.org/35253Reviewed-by: 's avatarMiklos Vajna <vmiklos@collabora.co.uk>
Tested-by: 's avatarJenkins <ci@libreoffice.org>
üst 903a5855
......@@ -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());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment