- attempt to fix Windows build
[WebKit-https.git] / JavaScriptCore / kxmlcore / HashMap.h
index 251860997846e577f403aa54bc6c13d5fb78eafa..cd4de5c3ca3314a4f64a79a9579e7f6474a315af 100644 (file)
@@ -286,7 +286,8 @@ namespace KXMLCore {
     {
         if (it.m_impl == m_impl.end())
             return;
-        it->~ValueType();
+        // Use "(*it)." instead of "it->" to work around a problem seen with the Visual C++ compiler.
+        (*it).~ValueType();
         m_impl.remove(it.m_impl);
     }