Skip to content

Commit

Permalink
Fixed another Qt6 warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitozz committed Apr 2, 2024
1 parent 3d7c2b4 commit efbb115
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/irisnet/noncore/iceagent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ struct Foundation {
};
};

#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
inline uint qHash(const Foundation &f, uint seed = 0)
#else
inline size_t qHash(const Foundation &f, size_t seed = 0)
#endif
{
auto tmp = uint(f.stunRequestProto) & (uint(f.type) << 8);
return qHash(f.baseAddr, seed) ^ qHash(f.stunServAddr, seed) ^ tmp;
Expand Down

0 comments on commit efbb115

Please sign in to comment.