1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-06-27 03:29:16 +02:00

Some more cleanup

This commit is contained in:
2019-08-13 20:50:43 +02:00
parent f67eaa8dec
commit ab6ea84255
4 changed files with 7 additions and 19 deletions

View File

@ -87,13 +87,10 @@ template<class T> bool FITParser::readValue(CTX &ctx, T &val)
ctx.len -= sizeof(T);
if (sizeof(T) > 1) {
if (ctx.endian)
val = qFromBigEndian(data);
else
val = qFromLittleEndian(data);
} else
val = data;
if (ctx.endian)
val = qFromBigEndian(data);
else
val = qFromLittleEndian(data);
return true;
}