mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-28 05:34:47 +01:00
Fixed ODR (One Definition Rule) violation
This commit is contained in:
parent
5a4de1cef0
commit
3b68f497fe
@ -61,19 +61,19 @@
|
||||
((map).contains(key) && (map).value(key).SHORT != 32767)
|
||||
|
||||
|
||||
typedef struct {
|
||||
struct TIFFHeader {
|
||||
quint16 KeyDirectoryVersion;
|
||||
quint16 KeyRevision;
|
||||
quint16 MinorRevision;
|
||||
quint16 NumberOfKeys;
|
||||
} Header;
|
||||
};
|
||||
|
||||
typedef struct {
|
||||
struct KeyEntry {
|
||||
quint16 KeyID;
|
||||
quint16 TIFFTagLocation;
|
||||
quint16 Count;
|
||||
quint16 ValueOffset;
|
||||
} KeyEntry;
|
||||
};
|
||||
|
||||
|
||||
bool GeoTIFF::readEntry(TIFFFile &file, Ctx &ctx) const
|
||||
@ -196,7 +196,7 @@ bool GeoTIFF::readMatrix(TIFFFile &file, quint32 offset, double matrix[16]) cons
|
||||
|
||||
bool GeoTIFF::readKeys(TIFFFile &file, Ctx &ctx, QMap<quint16, Value> &kv) const
|
||||
{
|
||||
Header header;
|
||||
TIFFHeader header;
|
||||
KeyEntry entry;
|
||||
Value value;
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
#define BLOCKCOUNT(size) \
|
||||
((size)/BLOCKSIZE + ((size) % BLOCKSIZE > 0 ? 1 : 0))
|
||||
|
||||
struct Header
|
||||
struct TARHeader
|
||||
{
|
||||
char name[100]; /* 0 */
|
||||
char mode[8]; /* 100 */
|
||||
@ -61,7 +61,7 @@ bool Tar::open()
|
||||
bool Tar::loadTar()
|
||||
{
|
||||
char buffer[BLOCKSIZE];
|
||||
struct Header *hdr = (struct Header*)&buffer;
|
||||
TARHeader *hdr = (TARHeader*)&buffer;
|
||||
quint64 size;
|
||||
qint64 ret;
|
||||
|
||||
@ -113,7 +113,7 @@ bool Tar::loadTmi(const QString &path)
|
||||
QByteArray Tar::file(const QString &name)
|
||||
{
|
||||
char buffer[BLOCKSIZE];
|
||||
struct Header *hdr = (struct Header*)&buffer;
|
||||
TARHeader *hdr = (TARHeader*)&buffer;
|
||||
quint64 size;
|
||||
|
||||
QMap<QString, quint64>::const_iterator it(_index.find(name));
|
||||
|
Loading…
Reference in New Issue
Block a user