Dont use auto in master since it is still built with ancient compilers on linux

This commit is contained in:
Kovid Goyal 2019-07-25 09:10:15 +05:30
parent b8b5c4e14e
commit 6eeb85ebe6
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -15,7 +15,7 @@ pdf::podofo_set_exception(const PdfError &err) {
if (msg == NULL) msg = err.what(); if (msg == NULL) msg = err.what();
std::stringstream stream; std::stringstream stream;
stream << msg << "\n"; stream << msg << "\n";
for (auto &info : err.GetCallstack()) { for (const PdfErrorInfo &info : err.GetCallstack()) {
stream << "File: " << info.GetFilename() << "Line: " << info.GetLine() << " " << info.GetInformation() << "\n"; stream << "File: " << info.GetFilename() << "Line: " << info.GetLine() << " " << info.GetInformation() << "\n";
} }
PyErr_SetString(Error, stream.str().c_str()); PyErr_SetString(Error, stream.str().c_str());