Build fix, NSIntMapValueCallBacks is deprecated infavor of the new name NSIntegerMapV...
authorthatcher <thatcher@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 18 Sep 2006 18:11:29 +0000 (18:11 +0000)
committerthatcher <thatcher@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 18 Sep 2006 18:11:29 +0000 (18:11 +0000)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16422 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKit/WebInspector/WebInspector.m

index 3e83bc77fc0a3f14a592598464f8dd97eee677ab..41e7149ea7e27a97c3da9aa44fc4caeb39fb25bc 100644 (file)
@@ -1126,8 +1126,10 @@ static NSMapTable *lastChildIgnoringWhitespaceCache = NULL;
 
 - (unsigned long)_lengthOfChildNodesIgnoringWhitespace
 {
 
 - (unsigned long)_lengthOfChildNodesIgnoringWhitespace
 {
-    if (!lengthIgnoringWhitespaceCache)
-        lengthIgnoringWhitespaceCache = NSCreateMapTable(NSObjectMapKeyCallBacks, NSIntMapValueCallBacks, 300);
+    if (!lengthIgnoringWhitespaceCache) {
+        NSMapTableValueCallBacks integerMapValueCallBacks = {NULL, NULL, NULL};
+        lengthIgnoringWhitespaceCache = NSCreateMapTable(NSObjectMapKeyCallBacks, integerMapValueCallBacks, 300);
+    }
 
     void *lookup = NSMapGet(lengthIgnoringWhitespaceCache, self);
     if (lookup)
 
     void *lookup = NSMapGet(lengthIgnoringWhitespaceCache, self);
     if (lookup)
@@ -1149,10 +1151,12 @@ static NSMapTable *lastChildIgnoringWhitespaceCache = NULL;
     unsigned long count = 0;
     DOMNode *node = nil;
 
     unsigned long count = 0;
     DOMNode *node = nil;
 
-    if (!lastChildIndexIgnoringWhitespaceCache)
-        lastChildIndexIgnoringWhitespaceCache = NSCreateMapTable(NSObjectMapKeyCallBacks, NSIntMapValueCallBacks, 300);
     if (!lastChildIgnoringWhitespaceCache)
         lastChildIgnoringWhitespaceCache = NSCreateMapTable(NSObjectMapKeyCallBacks, NSObjectMapValueCallBacks, 300);
     if (!lastChildIgnoringWhitespaceCache)
         lastChildIgnoringWhitespaceCache = NSCreateMapTable(NSObjectMapKeyCallBacks, NSObjectMapValueCallBacks, 300);
+    if (!lastChildIndexIgnoringWhitespaceCache) {
+        NSMapTableValueCallBacks integerMapValueCallBacks = {NULL, NULL, NULL};
+        lastChildIndexIgnoringWhitespaceCache = NSCreateMapTable(NSObjectMapKeyCallBacks, integerMapValueCallBacks, 300);
+    }
 
     void *cachedLastIndex = NSMapGet(lastChildIndexIgnoringWhitespaceCache, self);
     if (cachedLastIndex) {
 
     void *cachedLastIndex = NSMapGet(lastChildIndexIgnoringWhitespaceCache, self);
     if (cachedLastIndex) {