Further C-style struct definitions fixes
This commit is contained in:
@@ -30,7 +30,8 @@ public:
|
||||
int compareTo(const TextureHolder *other) const;
|
||||
};
|
||||
|
||||
typedef struct
|
||||
struct TextureHolderLessThan
|
||||
{
|
||||
bool operator() (const TextureHolder *first, const TextureHolder *second) const { return first->compareTo(second) >= 0; }
|
||||
} TextureHolderLessThan;
|
||||
inline bool operator()(const TextureHolder *first, const TextureHolder *second) const
|
||||
{ return first->compareTo(second) >= 0; }
|
||||
};
|
||||
@@ -28,13 +28,14 @@ public:
|
||||
ChunkPos & operator= (const ChunkPos & other) { x = other.x; z = other.z; return *this; }
|
||||
};
|
||||
|
||||
typedef struct
|
||||
struct ChunkPosKeyHash
|
||||
{
|
||||
__int64 operator() (const ChunkPos &k) const { return ChunkPos::hash_fnct(k); }
|
||||
inline __int64 operator()(const ChunkPos &k) const
|
||||
{ return ChunkPos::hash_fnct(k); }
|
||||
};
|
||||
|
||||
} ChunkPosKeyHash;
|
||||
|
||||
typedef struct
|
||||
struct ChunkPosKeyEq
|
||||
{
|
||||
bool operator() (const ChunkPos &x, const ChunkPos &y) const { return ChunkPos::eq_test(x, y); }
|
||||
} ChunkPosKeyEq;
|
||||
inline bool operator()(const ChunkPos &x, const ChunkPos &y) const
|
||||
{ return ChunkPos::eq_test(x, y); }
|
||||
};
|
||||
@@ -14,14 +14,15 @@ public:
|
||||
static bool eq_test(const TilePos &x, const TilePos &y);
|
||||
};
|
||||
|
||||
typedef struct
|
||||
struct TilePosKeyHash
|
||||
{
|
||||
int operator() (const TilePos &k) const { return TilePos::hash_fnct (k); }
|
||||
inline int operator()(const TilePos &k) const
|
||||
{ return TilePos::hash_fnct (k); }
|
||||
};
|
||||
|
||||
} TilePosKeyHash;
|
||||
|
||||
typedef struct
|
||||
struct TilePosKeyEq
|
||||
{
|
||||
bool operator() (const TilePos &x, const TilePos &y) const { return TilePos::eq_test (x, y); }
|
||||
} TilePosKeyEq;
|
||||
inline bool operator()(const TilePos &x, const TilePos &y) const
|
||||
{ return TilePos::eq_test (x, y); }
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user