Commit 68160cfa authored by hjk's avatar hjk
Browse files

compile fix with namespaced Qt

parent e4a7792d
......@@ -43,12 +43,14 @@
using namespace CPlusPlus;
QT_BEGIN_NAMESPACE
uint qHash(const CPlusPlus::LookupItem &key)
{
const uint h1 = qHash(key.type().type());
const uint h2 = qHash(key.lastVisibleSymbol());
return ((h1 << 16) | (h1 >> 16)) ^ h2;
}
QT_END_NAMESPACE
/////////////////////////////////////////////////////////////////////
// LookupContext
......
......@@ -231,7 +231,9 @@ private:
} // end of namespace CPlusPlus
QT_BEGIN_NAMESPACE
uint qHash(const CPlusPlus::LookupItem &result);
QT_END_NAMESPACE
#endif // CPLUSPLUS_LOOKUPCONTEXT_H
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment