Skip to content
Snippets Groups Projects
Commit 68160cfa authored by hjk's avatar hjk
Browse files

compile fix with namespaced Qt

parent e4a7792d
Branches
Tags
No related merge requests found
...@@ -43,12 +43,14 @@ ...@@ -43,12 +43,14 @@
using namespace CPlusPlus; using namespace CPlusPlus;
QT_BEGIN_NAMESPACE
uint qHash(const CPlusPlus::LookupItem &key) uint qHash(const CPlusPlus::LookupItem &key)
{ {
const uint h1 = qHash(key.type().type()); const uint h1 = qHash(key.type().type());
const uint h2 = qHash(key.lastVisibleSymbol()); const uint h2 = qHash(key.lastVisibleSymbol());
return ((h1 << 16) | (h1 >> 16)) ^ h2; return ((h1 << 16) | (h1 >> 16)) ^ h2;
} }
QT_END_NAMESPACE
///////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////
// LookupContext // LookupContext
......
...@@ -231,7 +231,9 @@ private: ...@@ -231,7 +231,9 @@ private:
} // end of namespace CPlusPlus } // end of namespace CPlusPlus
QT_BEGIN_NAMESPACE
uint qHash(const CPlusPlus::LookupItem &result); uint qHash(const CPlusPlus::LookupItem &result);
QT_END_NAMESPACE
#endif // CPLUSPLUS_LOOKUPCONTEXT_H #endif // CPLUSPLUS_LOOKUPCONTEXT_H
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment