X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FLexer.cpp;h=25d337a0793287e3ac6ba8e532dc74ca821b076f;hb=f5f8c6fd3828285b67e43a9c16d4ac2ff2140944;hp=fa9ffc71e8155040ff9c0b01dd802eee3f520a3d;hpb=cf44bb842b8e22b8ecad51170677281c2d6c231d;p=lyx.git diff --git a/src/Lexer.cpp b/src/Lexer.cpp index fa9ffc71e8..25d337a079 100644 --- a/src/Lexer.cpp +++ b/src/Lexer.cpp @@ -320,12 +320,11 @@ bool Lexer::Pimpl::next(bool esc /* = false */) } - unsigned char c = 0; // getc() returns an int char cc = 0; status = 0; while (is && !status) { is.get(cc); - c = cc; + unsigned char c = cc; if (c == commentChar) { // Read rest of line (fast :-) @@ -348,9 +347,8 @@ bool Lexer::Pimpl::next(bool esc /* = false */) if (esc) { - bool escaped = false; do { - escaped = false; + bool escaped = false; is.get(cc); c = cc; if (c == '\r') continue;