mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-06-28 12:09:15 +02:00
Some more cleanup
This commit is contained in:
@ -227,10 +227,7 @@ template<class T> bool IMG::readValue(T &val)
|
||||
if (read((char*)&data, sizeof(T)) < (qint64)sizeof(T))
|
||||
return false;
|
||||
|
||||
if (sizeof(T) > 1)
|
||||
val = qFromLittleEndian(data);
|
||||
else
|
||||
val = data;
|
||||
val = qFromLittleEndian(data);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user