1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-10-06 14:53:21 +02:00

Fixed compiler warning

This commit is contained in:
Martin Tůma 2018-08-19 10:44:12 +02:00
parent cdc9e51696
commit 9fe10f10b8
2 changed files with 2 additions and 2 deletions

View File

@ -98,7 +98,7 @@ template<class T> bool FITParser::readValue(CTX &ctx, T &val)
return true; return true;
} }
bool FITParser::skipValue(CTX &ctx, size_t size) bool FITParser::skipValue(CTX &ctx, quint8 size)
{ {
ctx.len -= size; ctx.len -= size;
return ctx.file->seek(ctx.file->pos() + size); return ctx.file->seek(ctx.file->pos() + size);

View File

@ -20,7 +20,7 @@ private:
bool readData(QFile *file, char *data, size_t size); bool readData(QFile *file, char *data, size_t size);
template<class T> bool readValue(CTX &ctx, T &val); template<class T> bool readValue(CTX &ctx, T &val);
bool skipValue(CTX &ctx, size_t size); bool skipValue(CTX &ctx, quint8 size);
bool readField(CTX &ctx, Field *field, quint32 &val); bool readField(CTX &ctx, Field *field, quint32 &val);
bool parseHeader(CTX &ctx); bool parseHeader(CTX &ctx);