1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-10-06 14:53:21 +02: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))
return false;
if (sizeof(T) > 4) {
#if Q_BYTE_ORDER == Q_BIG_ENDIAN
if (_be)
val = data;
@ -33,13 +32,6 @@ public:
} else
val = data;
#endif
} else if (sizeof(T) > 1) {
if (_be)
val = qFromBigEndian(data);
else
val = qFromLittleEndian(data);
} else
val = data;
return true;
}