- attempt to fix Windows build
authordarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 6 Apr 2006 07:02:00 +0000 (07:02 +0000)
committerdarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 6 Apr 2006 07:02:00 +0000 (07:02 +0000)
        * kxmlcore/HashMap.h: (KXMLCore::HashMap::remove): Use (*it). instead of it->.
        * kxmlcore/HashSet.h: (KXMLCore::HashSet::remove): Ditto.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@13719 268f45cc-cd09-0410-ab3c-d52691b4dbfc

JavaScriptCore/ChangeLog
JavaScriptCore/kxmlcore/HashMap.h
JavaScriptCore/kxmlcore/HashSet.h

index 51de465ff4a049b19701ff902ed34ea4a6546ed0..3e69f307d28f5c2b3caf296f009509f4be765e3c 100644 (file)
@@ -1,3 +1,10 @@
+2006-04-05  Darin Adler  <darin@apple.com>
+
+        - attempt to fix Windows build
+
+        * kxmlcore/HashMap.h: (KXMLCore::HashMap::remove): Use (*it). instead of it->.
+        * kxmlcore/HashSet.h: (KXMLCore::HashSet::remove): Ditto.
+
 2006-04-05  Darin Adler  <darin@apple.com>
 
         - attempt to fix Windows build
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);
     }
 
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);
     }