X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FBuffer.cpp;h=1ccb263014651595f417bb099d9ea820c8a4b522;hb=bea9d2f3f774d62aa48fe83ebbefdd0e7d5f85b9;hp=6d25d51908cabbd10241d07ce432623fc43cf2ec;hpb=fe85162a29893e98bd3426d15c9a9eb62aa90f6b;p=lyx.git diff --git a/src/Buffer.cpp b/src/Buffer.cpp index 6d25d51908..1ccb263014 100644 --- a/src/Buffer.cpp +++ b/src/Buffer.cpp @@ -1903,9 +1903,9 @@ Buffer::ExportStatus Buffer::writeLaTeXSource(otexstream & os, docstring uncodable_glyphs; Encoding const * const enc = runparams.encoding; if (enc) { - for (size_t n = 0; n < inputpath.size(); ++n) { - if (!enc->encodable(inputpath[n])) { - docstring const glyph(1, inputpath[n]); + for (char_type n : inputpath) { + if (!enc->encodable(n)) { + docstring const glyph(1, n); LYXERR0("Uncodable character '" << glyph << "' in input path!");