From 6eeb85ebe67722bca81734ff1af876baa3bf6bf5 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 25 Jul 2019 09:10:15 +0530 Subject: [PATCH] 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());