Debian Codegraph @

tests/qt6-qhash-signature/main.cpp

raw
1 #include <QtCore/QHash>
2 #include <QtCore/QString>
3
4 class Employee
5 {
6 public:
7 Employee() {}
8 Employee(const QString &name);
9 QString name() {return myName;}
10 uint test_var = qHash("blabla", 0);
11
12 private:
13 QString myName;
14 };
15
16 inline uint qHash(Employee *key, uint seed)
17 {
18 return qHash(key->name(), seed) ^ 4;
19 }
20
21 uint test_var_2 = qHash("blabla", 0);
22
23 uint anotherFunction()
24 {
25 int toto_NOT_qhash_related = 3;
26 return qHash("blabla", 0);
27 }
28
29 void test()
30 {
31 QString name = "Bob";
32 Employee *theemploye = new Employee(name);
33 uint foo = qHash(theemploye, 0);
34 size_t foo_g = qHash(theemploye, 0);
35
36 unsigned char p[2];
37 uint foo_bits = qHashBits(p, 0, 0);
38 static const int ints[] = {0, 1, 2, 3, 4, 5};
39 uint foo_range = qHashRange(ints, ints);
40 uint foo_rangec = qHashRangeCommutative(ints, ints);
41 }
42