1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-28 13:41:16 +01:00

Made the MM/II code work on Windows as well

This commit is contained in:
Martin Tůma 2018-01-09 09:39:35 +01:00
parent 83b7741ed9
commit 89878fade1

View File

@ -18,7 +18,6 @@ public:
if (QFile::read((char*)&data, sizeof(T)) < (qint64)sizeof(T)) if (QFile::read((char*)&data, sizeof(T)) < (qint64)sizeof(T))
return false; return false;
if (sizeof(T) > 4) {
#if Q_BYTE_ORDER == Q_BIG_ENDIAN #if Q_BYTE_ORDER == Q_BIG_ENDIAN
if (_be) if (_be)
val = data; val = data;
@ -33,13 +32,6 @@ public:
} else } else
val = data; val = data;
#endif #endif
} else if (sizeof(T) > 1) {
if (_be)
val = qFromBigEndian(data);
else
val = qFromLittleEndian(data);
} else
val = data;
return true; return true;
} }