mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Version for OS X 10.6-10.7 build from GYP is ready, not tested yet.
This commit is contained in:
@@ -1417,7 +1417,13 @@ inline bool operator<(const LocationCoords &a, const LocationCoords &b) {
|
||||
return (a.lat < b.lat) || ((a.lat == b.lat) && (a.lon < b.lon));
|
||||
}
|
||||
inline uint qHash(const LocationCoords &t, uint seed = 0) {
|
||||
#ifndef OS_MAC_OLD
|
||||
return qHash(QtPrivate::QHashCombine().operator()(qHash(t.lat), t.lon), seed);
|
||||
#else // OS_MAC_OLD
|
||||
uint h1 = qHash(t.lat, seed);
|
||||
uint h2 = qHash(t.lon, seed);
|
||||
return ((h1 << 16) | (h1 >> 16)) ^ h2 ^ seed;
|
||||
#endif // OS_MAC_OLD
|
||||
}
|
||||
|
||||
struct LocationData {
|
||||
|
Reference in New Issue
Block a user