Title: [159172] trunk/Source/WebCore
Revision
159172
Author
[email protected]
Date
2013-11-12 18:19:33 -0800 (Tue, 12 Nov 2013)

Log Message

Fix the Mountain Lion build after r159171.

* platform/mac/HTMLConverter.mm:
(_dateForString): +[NSCalendar calendarWithIdentifier:] only exists on
10.9. Use -[NSCalendar initWithIdentifier:] instead.

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (159171 => 159172)


--- trunk/Source/WebCore/ChangeLog	2013-11-13 02:04:18 UTC (rev 159171)
+++ trunk/Source/WebCore/ChangeLog	2013-11-13 02:19:33 UTC (rev 159172)
@@ -1,5 +1,13 @@
 2013-11-12  Andy Estes  <[email protected]>
 
+        Fix the Mountain Lion build after r159171.
+
+        * platform/mac/HTMLConverter.mm:
+        (_dateForString): +[NSCalendar calendarWithIdentifier:] only exists on
+        10.9. Use -[NSCalendar initWithIdentifier:] instead.
+
+2013-11-12  Andy Estes  <[email protected]>
+
         [Mac] Fix some deprecation warnings
         https://bugs.webkit.org/show_bug.cgi?id=124252
 

Modified: trunk/Source/WebCore/platform/mac/HTMLConverter.mm (159171 => 159172)


--- trunk/Source/WebCore/platform/mac/HTMLConverter.mm	2013-11-13 02:04:18 UTC (rev 159171)
+++ trunk/Source/WebCore/platform/mac/HTMLConverter.mm	2013-11-13 02:19:33 UTC (rev 159172)
@@ -1569,7 +1569,7 @@
     NSString *calendarIdentifier = NSGregorianCalendar;
 #endif
 
-    return [[NSCalendar calendarWithIdentifier:calendarIdentifier] dateFromComponents:dateComponents.get()];
+    return [[[[NSCalendar alloc] initWithCalendarIdentifier:calendarIdentifier] autorelease] dateFromComponents:dateComponents.get()];
 }
 
 static NSInteger _colCompare(id block1, id block2, void *)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to