mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-02-26 04:00:49 +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)
|
((map).contains(key) && (map).value(key).SHORT != 32767)
|
||||||
|
|
||||||
|
|
||||||
typedef struct {
|
struct TIFFHeader {
|
||||||
quint16 KeyDirectoryVersion;
|
quint16 KeyDirectoryVersion;
|
||||||
quint16 KeyRevision;
|
quint16 KeyRevision;
|
||||||
quint16 MinorRevision;
|
quint16 MinorRevision;
|
||||||
quint16 NumberOfKeys;
|
quint16 NumberOfKeys;
|
||||||
} Header;
|
};
|
||||||
|
|
||||||
typedef struct {
|
struct KeyEntry {
|
||||||
quint16 KeyID;
|
quint16 KeyID;
|
||||||
quint16 TIFFTagLocation;
|
quint16 TIFFTagLocation;
|
||||||
quint16 Count;
|
quint16 Count;
|
||||||
quint16 ValueOffset;
|
quint16 ValueOffset;
|
||||||
} KeyEntry;
|
};
|
||||||
|
|
||||||
|
|
||||||
bool GeoTIFF::readEntry(TIFFFile &file, Ctx &ctx) const
|
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
|
bool GeoTIFF::readKeys(TIFFFile &file, Ctx &ctx, QMap<quint16, Value> &kv) const
|
||||||
{
|
{
|
||||||
Header header;
|
TIFFHeader header;
|
||||||
KeyEntry entry;
|
KeyEntry entry;
|
||||||
Value value;
|
Value value;
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
#define BLOCKCOUNT(size) \
|
#define BLOCKCOUNT(size) \
|
||||||
((size)/BLOCKSIZE + ((size) % BLOCKSIZE > 0 ? 1 : 0))
|
((size)/BLOCKSIZE + ((size) % BLOCKSIZE > 0 ? 1 : 0))
|
||||||
|
|
||||||
struct Header
|
struct TARHeader
|
||||||
{
|
{
|
||||||
char name[100]; /* 0 */
|
char name[100]; /* 0 */
|
||||||
char mode[8]; /* 100 */
|
char mode[8]; /* 100 */
|
||||||
@ -61,7 +61,7 @@ bool Tar::open()
|
|||||||
bool Tar::loadTar()
|
bool Tar::loadTar()
|
||||||
{
|
{
|
||||||
char buffer[BLOCKSIZE];
|
char buffer[BLOCKSIZE];
|
||||||
struct Header *hdr = (struct Header*)&buffer;
|
TARHeader *hdr = (TARHeader*)&buffer;
|
||||||
quint64 size;
|
quint64 size;
|
||||||
qint64 ret;
|
qint64 ret;
|
||||||
|
|
||||||
@ -113,7 +113,7 @@ bool Tar::loadTmi(const QString &path)
|
|||||||
QByteArray Tar::file(const QString &name)
|
QByteArray Tar::file(const QString &name)
|
||||||
{
|
{
|
||||||
char buffer[BLOCKSIZE];
|
char buffer[BLOCKSIZE];
|
||||||
struct Header *hdr = (struct Header*)&buffer;
|
TARHeader *hdr = (TARHeader*)&buffer;
|
||||||
quint64 size;
|
quint64 size;
|
||||||
|
|
||||||
QMap<QString, quint64>::const_iterator it(_index.find(name));
|
QMap<QString, quint64>::const_iterator it(_index.find(name));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user