]> git.lyx.org Git - lyx.git/blobdiff - src/Lexer.cpp
Bring window to front after loading a document
[lyx.git] / src / Lexer.cpp
index fa9ffc71e8155040ff9c0b01dd802eee3f520a3d..25d337a0793287e3ac6ba8e532dc74ca821b076f 100644 (file)
@@ -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;