File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 35
35
QT_BEGIN_NAMESPACE_XLSX
36
36
class RichStringPrivate ;
37
37
class RichString ;
38
+ using QHashType = decltype (qHash(0 ));
38
39
// qHash is a friend, but we can't use default arguments for friends (§8.3.6.4)
39
- uint qHash (const RichString &rs, uint seed = 0 ) Q_DECL_NOTHROW;
40
+ QHashType qHash (const RichString &rs, QHashType seed = 0 ) Q_DECL_NOTHROW;
40
41
41
42
class QXLSX_EXPORT RichString
42
43
{
@@ -63,7 +64,7 @@ class QXLSX_EXPORT RichString
63
64
RichString &operator =(const RichString &other);
64
65
65
66
private:
66
- friend uint qHash (const RichString &rs, uint seed) Q_DECL_NOTHROW;
67
+ friend QHashType qHash (const RichString &rs, QHashType seed) Q_DECL_NOTHROW;
67
68
friend bool operator ==(const RichString &rs1, const RichString &rs2);
68
69
friend bool operator !=(const RichString &rs1, const RichString &rs2);
69
70
friend bool operator <(const RichString &rs1, const RichString &rs2);
Original file line number Diff line number Diff line change @@ -309,7 +309,7 @@ bool operator!=(const QString &rs1, const RichString &rs2)
309
309
return rs2 != rs1;
310
310
}
311
311
312
- uint qHash (const RichString &rs, uint seed) Q_DECL_NOTHROW
312
+ QHashType qHash (const RichString &rs, QHashType seed) Q_DECL_NOTHROW
313
313
{
314
314
return qHash (rs.d ->idKey (), seed);
315
315
}
You can’t perform that action at this time.
0 commit comments