Blob Blame History Raw
From 15b9daf4805439a109d1d7170b3443615086e117 Mon Sep 17 00:00:00 2001
From: Kovid Goyal <kovid@kovidgoyal.net>
Date: Thu, 25 Jul 2019 09:10:15 +0530
Subject: [PATCH 15/71] Dont use auto in master since it is still built with
 ancient compilers on linux

---
 src/calibre/utils/podofo/utils.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/calibre/utils/podofo/utils.cpp b/src/calibre/utils/podofo/utils.cpp
index a8755278cb..8e1a982f1c 100644
--- a/src/calibre/utils/podofo/utils.cpp
+++ b/src/calibre/utils/podofo/utils.cpp
@@ -15,7 +15,7 @@ pdf::podofo_set_exception(const PdfError &err) {
     if (msg == NULL) msg = err.what();
     std::stringstream stream;
     stream << msg << "\n";
-    for (auto &info : err.GetCallstack()) {
+    for (const PdfErrorInfo &info : err.GetCallstack()) {
         stream << "File: " << info.GetFilename() << "Line: " << info.GetLine() << " " << info.GetInformation() << "\n";
     }
     PyErr_SetString(Error, stream.str().c_str());