[Libreoffice-commits] core.git: xmlsecurity/source

Miklos Vajna vmiklos at collabora.co.uk
Thu Mar 16 11:08:56 UTC 2017


 xmlsecurity/source/pdfio/pdfdocument.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 9dd836e4f6bd4be378b56bd581d27e2b02077f0b
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date:   Thu Mar 16 09:13:49 2017 +0100

    xmlsecurity: use auto when declaring iterators
    
    Change-Id: Ie56c0c0e1917f159957babca346f1a3fa04bc629
    Reviewed-on: https://gerrit.libreoffice.org/35253
    Reviewed-by: Miklos Vajna <vmiklos at collabora.co.uk>
    Tested-by: Jenkins <ci at libreoffice.org>

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());


More information about the Libreoffice-commits mailing list