]> git.lyx.org Git - lyx.git/blobdiff - src/Buffer.cpp
Clean includes in TextMetrics.cpp
[lyx.git] / src / Buffer.cpp
index 6d25d51908cabbd10241d07ce432623fc43cf2ec..1ccb263014651595f417bb099d9ea820c8a4b522 100644 (file)
@@ -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!");