Title: [155087] trunk/Source/WTF
- Revision
- 155087
- Author
- [email protected]
- Date
- 2013-09-04 19:44:28 -0700 (Wed, 04 Sep 2013)
Log Message
Fix AutodrainedPool.h to compile without errors under ARC.
Rubber-stamped by Anders Carlsson.
* wtf/AutodrainedPool.h: Some versions of Clang complain about any use of NSAutoreleasePool under ARC.
Change the type of the member variable to id to work around this. Since the implementation file is compiled
under manual reference counting, everything will work fine.
Modified Paths
Diff
Modified: trunk/Source/WTF/ChangeLog (155086 => 155087)
--- trunk/Source/WTF/ChangeLog 2013-09-05 01:41:18 UTC (rev 155086)
+++ trunk/Source/WTF/ChangeLog 2013-09-05 02:44:28 UTC (rev 155087)
@@ -1,3 +1,13 @@
+2013-09-04 Mark Rowe <[email protected]>
+
+ Fix AutodrainedPool.h to compile without errors under ARC.
+
+ Rubber-stamped by Anders Carlsson.
+
+ * wtf/AutodrainedPool.h: Some versions of Clang complain about any use of NSAutoreleasePool under ARC.
+ Change the type of the member variable to id to work around this. Since the implementation file is compiled
+ under manual reference counting, everything will work fine.
+
2013-09-04 Anders Carlsson <[email protected]>
De-indent Vector.h.
Modified: trunk/Source/WTF/wtf/AutodrainedPool.h (155086 => 155087)
--- trunk/Source/WTF/wtf/AutodrainedPool.h 2013-09-05 01:41:18 UTC (rev 155086)
+++ trunk/Source/WTF/wtf/AutodrainedPool.h 2013-09-05 02:44:28 UTC (rev 155087)
@@ -31,7 +31,9 @@
#include <wtf/Noncopyable.h>
-OBJC_CLASS NSAutoreleasePool;
+#if PLATFORM(MAC) && !defined(__OBJC__)
+typedef struct objc_object *id;
+#endif
namespace WTF {
@@ -48,7 +50,7 @@
private:
#if PLATFORM(MAC)
- NSAutoreleasePool* m_pool;
+ id m_pool;
#endif
};
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes