]> git.lyx.org Git - features.git/commitdiff
* src/mathed/MathParser.cpp (getChar):
authorJürgen Spitzmüller <spitz@lyx.org>
Mon, 5 Nov 2007 07:55:32 +0000 (07:55 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Mon, 5 Nov 2007 07:55:32 +0000 (07:55 +0000)
- return 0 instead of char_type(), which is unpredictable.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21426 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/MathParser.cpp

index 5b811fcc9886e54690844e648cceee5c74010f1a..daac331da5734fb5544812ff239a3d64e3c517b4 100644 (file)
@@ -466,7 +466,7 @@ char_type Parser::getChar()
        if (!good()) {
                error("The input stream is not well...");
                putback();
-               return char_type();
+               return 0;
        }
        return tokens_[pos_++].character();
 }