1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-30 22:51:16 +01:00

Fixed QT6 build

This commit is contained in:
Martin Tůma 2021-06-17 22:40:37 +02:00
parent 6f093b2148
commit 3244dd675d

View File

@ -151,27 +151,27 @@ void PRJFile::nextToken(CTX &ctx)
return; return;
} }
if (isalpha(c)) { if (isalpha(c)) {
ctx.string = c; ctx.string = QChar(c);
state = 2; state = 2;
break; break;
} }
if (isdigit(c)) { if (isdigit(c)) {
flstr += c; flstr += QChar(c);
state = 3; state = 3;
break; break;
} }
if (c == '.') { if (c == '.') {
flstr += c; flstr += QChar(c);
state = 4; state = 4;
break; break;
} }
if (c == '+') { if (c == '+') {
flstr += c; flstr += QChar(c);
state = 3; state = 3;
break; break;
} }
if (c == '-') { if (c == '-') {
flstr += c; flstr += QChar(c);
state = 3; state = 3;
break; break;
} }
@ -189,7 +189,7 @@ void PRJFile::nextToken(CTX &ctx)
case 2: case 2:
if (isalnum(c)) { if (isalnum(c)) {
ctx.string += c; ctx.string += QChar(c);
break; break;
} }
ctx.file.ungetChar(c); ctx.file.ungetChar(c);
@ -198,17 +198,17 @@ void PRJFile::nextToken(CTX &ctx)
case 3: case 3:
if (c == '.') { if (c == '.') {
flstr += c; flstr += QChar(c);
state = 4; state = 4;
break; break;
} }
if (c == 'e' || c == 'E') { if (c == 'e' || c == 'E') {
flstr += c; flstr += QChar(c);
state = 5; state = 5;
break; break;
} }
if (isdigit(c)) { if (isdigit(c)) {
flstr += c; flstr += QChar(c);
break; break;
} }
ctx.file.ungetChar(c); ctx.file.ungetChar(c);
@ -218,11 +218,11 @@ void PRJFile::nextToken(CTX &ctx)
case 4: case 4:
if (isdigit(c)) { if (isdigit(c)) {
flstr += c; flstr += QChar(c);
break; break;
} }
if (c == 'e' || c == 'E') { if (c == 'e' || c == 'E') {
flstr += c; flstr += QChar(c);
state = 5; state = 5;
break; break;
} }
@ -233,17 +233,17 @@ void PRJFile::nextToken(CTX &ctx)
case 5: case 5:
if (c == '+') { if (c == '+') {
flstr += c; flstr += QChar(c);
state = 6; state = 6;
break; break;
} }
if (c == '-') { if (c == '-') {
flstr += c; flstr += QChar(c);
state = 6; state = 6;
break; break;
} }
if (isdigit(c)) { if (isdigit(c)) {
flstr += c; flstr += QChar(c);
state = 6; state = 6;
break; break;
} }
@ -252,7 +252,7 @@ void PRJFile::nextToken(CTX &ctx)
case 6: case 6:
if (isdigit(c)) { if (isdigit(c)) {
flstr += c; flstr += QChar(c);
break; break;
} }
ctx.file.ungetChar(c); ctx.file.ungetChar(c);
@ -269,7 +269,7 @@ void PRJFile::nextToken(CTX &ctx)
ctx.token = STRING; ctx.token = STRING;
return; return;
} }
ctx.string += c; ctx.string += QChar(c);
break; break;
} }
} }