From 3244dd675df83583ed8ef44fee45486d7d83bfa1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Thu, 17 Jun 2021 22:40:37 +0200 Subject: [PATCH] Fixed QT6 build --- src/map/prjfile.cpp | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/src/map/prjfile.cpp b/src/map/prjfile.cpp index d8701427..82d0376e 100644 --- a/src/map/prjfile.cpp +++ b/src/map/prjfile.cpp @@ -151,27 +151,27 @@ void PRJFile::nextToken(CTX &ctx) return; } if (isalpha(c)) { - ctx.string = c; + ctx.string = QChar(c); state = 2; break; } if (isdigit(c)) { - flstr += c; + flstr += QChar(c); state = 3; break; } if (c == '.') { - flstr += c; + flstr += QChar(c); state = 4; break; } if (c == '+') { - flstr += c; + flstr += QChar(c); state = 3; break; } if (c == '-') { - flstr += c; + flstr += QChar(c); state = 3; break; } @@ -189,7 +189,7 @@ void PRJFile::nextToken(CTX &ctx) case 2: if (isalnum(c)) { - ctx.string += c; + ctx.string += QChar(c); break; } ctx.file.ungetChar(c); @@ -198,17 +198,17 @@ void PRJFile::nextToken(CTX &ctx) case 3: if (c == '.') { - flstr += c; + flstr += QChar(c); state = 4; break; } if (c == 'e' || c == 'E') { - flstr += c; + flstr += QChar(c); state = 5; break; } if (isdigit(c)) { - flstr += c; + flstr += QChar(c); break; } ctx.file.ungetChar(c); @@ -218,11 +218,11 @@ void PRJFile::nextToken(CTX &ctx) case 4: if (isdigit(c)) { - flstr += c; + flstr += QChar(c); break; } if (c == 'e' || c == 'E') { - flstr += c; + flstr += QChar(c); state = 5; break; } @@ -233,17 +233,17 @@ void PRJFile::nextToken(CTX &ctx) case 5: if (c == '+') { - flstr += c; + flstr += QChar(c); state = 6; break; } if (c == '-') { - flstr += c; + flstr += QChar(c); state = 6; break; } if (isdigit(c)) { - flstr += c; + flstr += QChar(c); state = 6; break; } @@ -252,7 +252,7 @@ void PRJFile::nextToken(CTX &ctx) case 6: if (isdigit(c)) { - flstr += c; + flstr += QChar(c); break; } ctx.file.ungetChar(c); @@ -269,7 +269,7 @@ void PRJFile::nextToken(CTX &ctx) ctx.token = STRING; return; } - ctx.string += c; + ctx.string += QChar(c); break; } }