]> git.lyx.org Git - lyx.git/blobdiff - src/tex2lyx/Parser.cpp
Capitalize labels of floats, etc. Fixes #11993.
[lyx.git] / src / tex2lyx / Parser.cpp
index 62cab06fba1d7b4ebc4aac83a24f5d74af668591..e4eb9b40ba42235e1de19e7bb760d43930255139 100644 (file)
@@ -10,8 +10,9 @@
 
 #include <config.h>
 
-#include "Encoding.h"
 #include "Parser.h"
+
+#include "Encoding.h"
 #include "support/lstrings.h"
 #include "support/textutils.h"
 
@@ -129,7 +130,7 @@ void iparserdocstream::putback(char_type c)
 }
 
 
-void iparserdocstream::putback(docstring s)
+void iparserdocstream::putback(docstring const & s)
 {
        s_ = s + s_;
 }
@@ -443,7 +444,7 @@ void Parser::dropPosition()
 }
 
 
-bool Parser::good()
+bool Parser::good() const
 {
        if (pos_ < tokens_.size())
                return true;
@@ -853,7 +854,7 @@ void Parser::tokenize_one()
        }
 
        case catIgnore: {
-               cerr << "ignoring a char: " << c << "\n";
+               cerr << "ignoring a char: " << static_cast<uint32_t>(c) << "\n";
                break;
        }
 
@@ -876,7 +877,7 @@ void Parser::dump() const
 }
 
 
-void Parser::error(string const & msg)
+void Parser::error(string const & msg) const
 {
        cerr << "Line ~" << lineno_ << ":  parse error: " << msg << endl;
        dump();