Cosmetics

This commit is contained in:
Martin Tůma 2025-01-06 20:47:11 +01:00
parent 8e49440a02
commit 4e2dfabc9d

View File

@ -51,6 +51,7 @@ static bool str(CTX &ctx, QByteArray &val)
return false; return false;
if (ctx.bp + len > ctx.be) if (ctx.bp + len > ctx.be)
return false; return false;
val = QByteArray::fromRawData(ctx.bp, len); val = QByteArray::fromRawData(ctx.bp, len);
ctx.bp += len; ctx.bp += len;
@ -247,7 +248,7 @@ static bool feature(CTX &ctx, Data::Feature &f)
return false; return false;
if (e > Data::GeomType::POLYGON) if (e > Data::GeomType::POLYGON)
return false; return false;
f.type = (Data::GeomType)e; f.type = static_cast<Data::GeomType>(e);
break; break;
case 4: case 4:
if (!packed(ctx, f.geometry)) if (!packed(ctx, f.geometry))