- attempt to fix Windows build
[WebKit-https.git] / JavaScriptCore / kxmlcore / HashSet.h
index 3c3212581982cecb51bc62d0194fb0766b506bbc..00f49385c2257717cf80f0b701f9c329302add5d 100644 (file)
@@ -274,7 +274,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);
     }