Skip to content

Instantly share code, notes, and snippets.

@vitallium
Created March 22, 2013 11:04
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save vitallium/5220503 to your computer and use it in GitHub Desktop.
Save vitallium/5220503 to your computer and use it in GitHub Desktop.
VS2012 fix
diff --git a/src/qt/src/3rdparty/webkit/Source/JavaScriptCore/wtf/HashSet.h b/src/qt/src/3rdparty/webkit/Source/JavaScriptCore/wtf/HashSet.h
index 82245f3..932d254 100644
--- a/src/qt/src/3rdparty/webkit/Source/JavaScriptCore/wtf/HashSet.h
+++ b/src/qt/src/3rdparty/webkit/Source/JavaScriptCore/wtf/HashSet.h
@@ -175,18 +175,20 @@ namespace WTF {
}
template<typename T, typename U, typename V>
- inline pair<typename HashSet<T, U, V>::iterator, bool> HashSet<T, U, V>::add(const ValueType& value)
+ inline pair<typename HashSet<T,U,V>::const_iterator, bool> HashSet<T,U,V>::add(const ValueType &value)
{
- return m_impl.add(value);
+ auto p= m_impl.add(value);
+ return make_pair(typename HashSet<T,U,V>::const_iterator(p.first), p.second);
}
template<typename Value, typename HashFunctions, typename Traits>
template<typename T, typename HashTranslator>
inline pair<typename HashSet<Value, HashFunctions, Traits>::iterator, bool>
- HashSet<Value, HashFunctions, Traits>::add(const T& value)
+ HasSet<Value, HashFunctions, Traits>::add(const T& value)
{
typedef HashSetTranslatorAdapter<ValueType, ValueTraits, T, HashTranslator> Adapter;
- return m_impl.template addPassingHashCode<T, T, Adapter>(value, value);
+ auto p = m_impl.template addPassingHashCode<T, T, Adapter>(value, value);
+ return make_pair(typename HashSet<Value, HashFunctions, Traits>::iterator(p.first), p.second);
}
template<typename T, typename U, typename V>
@zacharias2k
Copy link

Line 21 is not correct. Guess HasSet is just a typo, thus ignore this line change and stick to the original line 20. Confirmed successfull compile of webkit with this fix on Win7 VS2012 x64. Ty anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment