mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-27 06:19:36 +00:00
Fix #10863 compiler warnings.
This commit is contained in:
parent
b1adf98037
commit
b684ec39ea
@ -744,7 +744,6 @@ docstring Parser::parse_verbatim_option()
|
|||||||
skipSpaces();
|
skipSpaces();
|
||||||
docstring res;
|
docstring res;
|
||||||
if (nextToken().character() == '[') {
|
if (nextToken().character() == '[') {
|
||||||
Token t = getToken();
|
|
||||||
for (Token t = getToken(); t.character() != ']' && good(); t = getToken()) {
|
for (Token t = getToken(); t.character() != ']' && good(); t = getToken()) {
|
||||||
if (t.cat() == catBegin) {
|
if (t.cat() == catBegin) {
|
||||||
putback();
|
putback();
|
||||||
@ -762,7 +761,6 @@ docstring Parser::parse_verbatim_item()
|
|||||||
skipSpaces();
|
skipSpaces();
|
||||||
docstring res;
|
docstring res;
|
||||||
if (nextToken().cat() == catBegin) {
|
if (nextToken().cat() == catBegin) {
|
||||||
Token t = getToken();
|
|
||||||
for (Token t = getToken(); t.cat() != catEnd && good(); t = getToken()) {
|
for (Token t = getToken(); t.cat() != catEnd && good(); t = getToken()) {
|
||||||
if (t.cat() == catBegin) {
|
if (t.cat() == catBegin) {
|
||||||
putback();
|
putback();
|
||||||
@ -1037,10 +1035,10 @@ bool Parser::parse1(InsetMathGrid & grid, unsigned flags,
|
|||||||
else if (t.cat() == catComment) {
|
else if (t.cat() == catComment) {
|
||||||
docstring s;
|
docstring s;
|
||||||
while (good()) {
|
while (good()) {
|
||||||
Token const & t = getToken();
|
Token const & tt = getToken();
|
||||||
if (t.cat() == catNewline)
|
if (tt.cat() == catNewline)
|
||||||
break;
|
break;
|
||||||
s += t.asInput();
|
s += tt.asInput();
|
||||||
}
|
}
|
||||||
cell->push_back(MathAtom(new InsetMathComment(buf, s)));
|
cell->push_back(MathAtom(new InsetMathComment(buf, s)));
|
||||||
skipSpaces();
|
skipSpaces();
|
||||||
@ -1774,7 +1772,7 @@ bool Parser::parse1(InsetMathGrid & grid, unsigned flags,
|
|||||||
docstring s;
|
docstring s;
|
||||||
int num_tokens = 0;
|
int num_tokens = 0;
|
||||||
while (true) {
|
while (true) {
|
||||||
Token const & t = getToken();
|
Token const & tt = getToken();
|
||||||
++num_tokens;
|
++num_tokens;
|
||||||
if (!good()) {
|
if (!good()) {
|
||||||
s.clear();
|
s.clear();
|
||||||
@ -1782,7 +1780,7 @@ bool Parser::parse1(InsetMathGrid & grid, unsigned flags,
|
|||||||
putback();
|
putback();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
s += t.character();
|
s += tt.character();
|
||||||
if (isValidLength(to_utf8(s)))
|
if (isValidLength(to_utf8(s)))
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user