1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-24 11:45:53 +01:00

Silenced clang indentation warning

This commit is contained in:
Martin Tůma 2020-10-12 21:17:18 +02:00
parent 3b68f497fe
commit 2d1e0934ce

View File

@ -33,18 +33,18 @@ public:
return false; return false;
#if Q_BYTE_ORDER == Q_BIG_ENDIAN #if Q_BYTE_ORDER == Q_BIG_ENDIAN
if (_be) if (_be)
val = data; val = data;
else { else {
for (size_t i = 0; i < sizeof(T); i++) for (size_t i = 0; i < sizeof(T); i++)
*((char *)&val + i) = *((char*)&data + sizeof(T) - 1 - i); *((char *)&val + i) = *((char*)&data + sizeof(T) - 1 - i);
} }
#else #else
if (_be) { if (_be) {
for (size_t i = 0; i < sizeof(T); i++) for (size_t i = 0; i < sizeof(T); i++)
*((char *)&val + i) = *((char*)&data + sizeof(T) - 1 - i); *((char *)&val + i) = *((char*)&data + sizeof(T) - 1 - i);
} else } else
val = data; val = data;
#endif #endif
return true; return true;